mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
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:
parent
e9032a9f61
commit
cb250c9b10
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user