Dismiss the search dialogue when starting a DM (#8967)

pull/28217/head
Šimon Brandner 2022-07-04 09:11:06 +02:00 committed by GitHub
parent 352df7ddc7
commit a4701ccff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -529,6 +529,7 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", initialFilter = n
key={`${Section[result.section]}-${result.member.userId}`}
onClick={() => {
startDm(cli, [result.member]);
onFinished();
}}
>
<SearchResultAvatar user={result.member} size={AVATAR_SIZE} />