Skip to content

Commit

Permalink
Hide notifications menu from invite tiles
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
  • Loading branch information
t3chguy committed Jul 1, 2020
1 parent 10e5475 commit 9831698
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/views/rooms/RoomTile2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ export default class RoomTile2 extends React.Component<IProps, IState> {
private onClickMute = ev => this.saveNotifState(ev, MUTE);

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);

Expand Down

0 comments on commit 9831698

Please sign in to comment.