From cb250c9b1024f12e260b1156f2e14efa584b5efc Mon Sep 17 00:00:00 2001 From: Zoe Date: Fri, 10 Jan 2020 13:09:16 +0000 Subject: [PATCH] Use existing available props data to determine whether a room is encrypted, thereby allowing a state update to properly rerender the tile --- src/components/views/rooms/RoomTile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js index b9e1abd23d..ce0375e088 100644 --- a/src/components/views/rooms/RoomTile.js +++ b/src/components/views/rooms/RoomTile.js @@ -303,7 +303,7 @@ module.exports = createReactClass({ 'mx_RoomTile_noBadges': !badges, 'mx_RoomTile_transparent': this.props.transparent, 'mx_RoomTile_hasSubtext': subtext && !this.props.collapsed, - 'mx_RoomTile_isEncrypted': MatrixClientPeg.get().isRoomEncrypted(this.props.room.roomId), + 'mx_RoomTile_isEncrypted': Boolean(this.props.room.currentState.getStateEvents("m.room.encryption", "")), }); const avatarClasses = classNames({