Merge pull request #569 from vector-im/fix-400

Show redacted tile for redacted messages in encrypted rooms
This commit is contained in:
Bruno Windels 2021-11-05 15:57:36 +01:00 committed by GitHub
commit 4c5fe824c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,6 +65,9 @@ export function tilesCreator(baseOptions) {
case "m.room.member": case "m.room.member":
return new RoomMemberTile(options); return new RoomMemberTile(options);
case "m.room.encrypted": case "m.room.encrypted":
if (entry.isRedacted) {
return new RedactedTile(options);
}
return new EncryptedEventTile(options); return new EncryptedEventTile(options);
case "m.room.encryption": case "m.room.encryption":
return new EncryptionEnabledTile(options); return new EncryptionEnabledTile(options);