From b05345ee2780b550174f95421115260f09b0bf6d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 3 Jun 2021 16:48:42 +0200 Subject: [PATCH] only show redacted messages --- src/domain/session/room/timeline/tilesCreator.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/domain/session/room/timeline/tilesCreator.js b/src/domain/session/room/timeline/tilesCreator.js index af91cac7..4926ff6a 100644 --- a/src/domain/session/room/timeline/tilesCreator.js +++ b/src/domain/session/room/timeline/tilesCreator.js @@ -32,13 +32,14 @@ export function tilesCreator(baseOptions) { const options = Object.assign({entry, emitUpdate}, baseOptions); if (entry.isGap) { return new GapTile(options); - } else if (entry.isRedacted) { - return new RedactedTile(options); } else if (entry.isPending && entry.pendingEvent.isMissingAttachments) { return new MissingAttachmentTile(options); } else if (entry.eventType) { switch (entry.eventType) { case "m.room.message": { + if (entry.isRedacted) { + return new RedactedTile(options); + } const content = entry.content; const msgtype = content && content.msgtype; switch (msgtype) {