Fix reacting to redactions

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-05-23 08:43:15 +01:00
parent 696f158be0
commit fe03d02cf6
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export function isContentActionable(mxEvent) {
// status is SENT before remote-echo, null after
const isSent = !eventStatus || eventStatus === EventStatus.SENT;
if (isSent) {
if (isSent && !mxEvent.isRedacted()) {
if (mxEvent.getType() === 'm.room.message') {
const content = mxEvent.getContent();
if (content.msgtype && content.msgtype !== 'm.bad.encrypted' && content.hasOwnProperty('body')) {