You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-01 13:11:10 +03:00
add comment
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user