Only show mute notification icon on rooms, not all notif icons
This commit is contained in:
parent
9fec5c98af
commit
349c3f7090
1 changed files with 4 additions and 3 deletions
|
@ -284,9 +284,10 @@ export default class RoomTile2 extends React.Component<IProps, IState> {
|
||||||
mx_RoomTile2_iconBell: state === ALL_MESSAGES_LOUD || state === ALL_MESSAGES,
|
mx_RoomTile2_iconBell: state === ALL_MESSAGES_LOUD || state === ALL_MESSAGES,
|
||||||
mx_RoomTile2_iconBellDot: state === MENTIONS_ONLY,
|
mx_RoomTile2_iconBellDot: state === MENTIONS_ONLY,
|
||||||
mx_RoomTile2_iconBellCrossed: state === MUTE,
|
mx_RoomTile2_iconBellCrossed: state === MUTE,
|
||||||
// XXX: RoomNotifs assumes ALL_MESSAGES is default, this is wrong,
|
|
||||||
// but cannot be fixed until FTUE Notifications lands.
|
// Only show the icon by default if the room is overridden to muted.
|
||||||
mx_RoomTile2_notificationsButton_show: state !== ALL_MESSAGES,
|
// TODO: [FTUE Notifications] Probably need to detect global mute state
|
||||||
|
mx_RoomTile2_notificationsButton_show: state === MUTE,
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue