mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
Hide notifications menu from invite tiles
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -230,7 +230,10 @@ export default class RoomTile2 extends React.Component<IProps, IState> {
|
|||||||
private onClickMute = ev => this.saveNotifState(ev, MUTE);
|
private onClickMute = ev => this.saveNotifState(ev, MUTE);
|
||||||
|
|
||||||
private renderNotificationsMenu(): React.ReactElement {
|
private renderNotificationsMenu(): React.ReactElement {
|
||||||
if (this.props.isMinimized || MatrixClientPeg.get().isGuest()) return null; // no menu when minimized or guest
|
if (this.props.isMinimized || MatrixClientPeg.get().isGuest() || this.props.tag === DefaultTagID.Invite) {
|
||||||
|
// the menu makes no sense in these cases so do not show one
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
const state = getRoomNotifsState(this.props.room.roomId);
|
const state = getRoomNotifsState(this.props.room.roomId);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user