From 4a2accdbc97fde1ec2717a5ffccac3382a8ae8b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Fri, 31 May 2024 09:10:04 +0200 Subject: [PATCH] Fix user autocomplete not always showing on search screen (#7977) (cherry picked from commit 663f9ba01a4907624d7d61798ba641e66c446f05) --- app/components/autocomplete/at_mention/at_mention.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/autocomplete/at_mention/at_mention.tsx b/app/components/autocomplete/at_mention/at_mention.tsx index 541ec87bfe9..3abd98a7133 100644 --- a/app/components/autocomplete/at_mention/at_mention.tsx +++ b/app/components/autocomplete/at_mention/at_mention.tsx @@ -278,7 +278,7 @@ const AtMention = ({ const filteredUsers = filterResults(fallbackUsers, term); setFilteredLocalUsers(filteredUsers.length ? filteredUsers : emptyUserlList); } else if (receivedUsers) { - sortRecievedUsers(sUrl, term, receivedUsers?.users, receivedUsers?.out_of_channel); + await sortRecievedUsers(sUrl, term, receivedUsers?.users, receivedUsers?.out_of_channel); } setLoading(false);