From 6ac3a925130ed6dfdc8a87312b9540635bddd020 Mon Sep 17 00:00:00 2001 From: Charlie Calendre <57274151+c-cal@users.noreply.github.com> Date: Mon, 24 Jan 2022 21:20:53 +0100 Subject: [PATCH] Avoid double dialog after clicking to remove a public room (#7604) Fixes https://github.com/vector-im/element-web/issues/20681 --- src/components/structures/RoomDirectory.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/components/structures/RoomDirectory.tsx b/src/components/structures/RoomDirectory.tsx index 9b6c068cda..10349d8e95 100644 --- a/src/components/structures/RoomDirectory.tsx +++ b/src/components/structures/RoomDirectory.tsx @@ -611,21 +611,14 @@ export default class RoomDirectory extends React.Component { onMouseDown={(ev) => this.onRoomClicked(room, ev)} className="mx_RoomDirectory_roomDescription" > -
this.onRoomClicked(room, ev)} - > +
{ name }
 
this.onRoomClicked(room, ev)} dangerouslySetInnerHTML={{ __html: topic }} /> -
this.onRoomClicked(room, ev)} - > +
{ getDisplayAliasForRoom(room) }
@@ -637,7 +630,6 @@ export default class RoomDirectory extends React.Component {
this.onRoomClicked(room, ev)} - // cancel onMouseDown otherwise shift-clicking highlights text className="mx_RoomDirectory_preview" > { previewButton }