You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03: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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user