Don't show room if we don't click on buttons

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-06-22 09:12:41 +02:00
parent e9ea3cad76
commit de40657194
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 2 deletions

View File

@ -337,11 +337,10 @@ export default class RoomDirectory extends React.Component<IProps, IState> {
}
private onRoomClicked = (room: IRoom, ev: ButtonEvent) => {
// If room was shift-clicked, remove it from the room directory
if (ev.shiftKey && !this.state.selectedCommunityId) {
ev.preventDefault();
this.removeFromDirectory(room);
} else {
this.showRoom(room);
}
};