mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-12 18:00:19 +03:00
Allow reacting to stickers
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
0fb96fda6e
commit
b489a7c0d5
1 changed files with 7 additions and 7 deletions
|
@ -31,13 +31,13 @@ export function isContentActionable(mxEvent) {
|
|||
// status is SENT before remote-echo, null after
|
||||
const isSent = !eventStatus || eventStatus === EventStatus.SENT;
|
||||
|
||||
if (isSent && mxEvent.getType() === 'm.room.message') {
|
||||
const content = mxEvent.getContent();
|
||||
if (
|
||||
content.msgtype &&
|
||||
content.msgtype !== 'm.bad.encrypted' &&
|
||||
content.hasOwnProperty('body')
|
||||
) {
|
||||
if (isSent) {
|
||||
if (mxEvent.getType() === 'm.room.message') {
|
||||
const content = mxEvent.getContent();
|
||||
if (content.msgtype && content.msgtype !== 'm.bad.encrypted' && content.hasOwnProperty('body')) {
|
||||
return true;
|
||||
}
|
||||
} else if (mxEvent.getType() === 'm.sticker') {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue