mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 07:21:22 +02:00
Fix reacting to redactions
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
696f158be0
commit
fe03d02cf6
@ -31,7 +31,7 @@ export function isContentActionable(mxEvent) {
|
|||||||
// status is SENT before remote-echo, null after
|
// status is SENT before remote-echo, null after
|
||||||
const isSent = !eventStatus || eventStatus === EventStatus.SENT;
|
const isSent = !eventStatus || eventStatus === EventStatus.SENT;
|
||||||
|
|
||||||
if (isSent) {
|
if (isSent && !mxEvent.isRedacted()) {
|
||||||
if (mxEvent.getType() === 'm.room.message') {
|
if (mxEvent.getType() === 'm.room.message') {
|
||||||
const content = mxEvent.getContent();
|
const content = mxEvent.getContent();
|
||||||
if (content.msgtype && content.msgtype !== 'm.bad.encrypted' && content.hasOwnProperty('body')) {
|
if (content.msgtype && content.msgtype !== 'm.bad.encrypted' && content.hasOwnProperty('body')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user