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

This commit is contained in:
Š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

View file

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