mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
add comment
This commit is contained in:
parent
68836b9c68
commit
6cbdb58341
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue