From a4701ccff1a9a9232842a903cb4e9e150d9064bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Mon, 4 Jul 2022 09:11:06 +0200 Subject: [PATCH] Dismiss the search dialogue when starting a DM (#8967) --- src/components/views/dialogs/spotlight/SpotlightDialog.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/views/dialogs/spotlight/SpotlightDialog.tsx b/src/components/views/dialogs/spotlight/SpotlightDialog.tsx index f633ca66dd..0bdb5b1cc9 100644 --- a/src/components/views/dialogs/spotlight/SpotlightDialog.tsx +++ b/src/components/views/dialogs/spotlight/SpotlightDialog.tsx @@ -529,6 +529,7 @@ const SpotlightDialog: React.FC = ({ initialText = "", initialFilter = n key={`${Section[result.section]}-${result.member.userId}`} onClick={() => { startDm(cli, [result.member]); + onFinished(); }} >