Use existing available props data to determine whether a room is encrypted, thereby allowing a state update to properly rerender the tile

This commit is contained in:
Zoe 2020-01-10 13:09:16 +00:00
parent e9032a9f61
commit cb250c9b10

View file

@ -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({