forked from mystiq/hydrogen-web
Merge pull request #569 from vector-im/fix-400
Show redacted tile for redacted messages in encrypted rooms
This commit is contained in:
commit
4c5fe824c2
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue