mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
add comment
This commit is contained in:
parent
68836b9c68
commit
6cbdb58341
@ -35,6 +35,7 @@ const EncryptionEvent = forwardRef<HTMLDivElement, IProps>(({ mxEvent }, ref) =>
|
||||
const roomId = mxEvent.getRoomId();
|
||||
const isRoomEncrypted = MatrixClientPeg.get().isRoomEncrypted(roomId);
|
||||
|
||||
// if no change happened then skip rendering this, a shallow check is enough as events are parsed JSON
|
||||
if (!objectHasDiff(mxEvent.getPrevContent(), mxEvent.getContent())) return null; // nop
|
||||
|
||||
if (mxEvent.getContent().algorithm === ALGORITHM && isRoomEncrypted) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user