From 069edcdd89700d9ddc87f852959637a96702e9de Mon Sep 17 00:00:00 2001 From: HuyNguyen Date: Thu, 13 Jun 2024 10:55:51 +0700 Subject: [PATCH] TW-1825: Fix search results aren't displayed correctly when copy/paste --- .../mixins/contacts_view_controller_mixin.dart | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/presentation/mixins/contacts_view_controller_mixin.dart b/lib/presentation/mixins/contacts_view_controller_mixin.dart index ba80f55c42..b0a43570db 100644 --- a/lib/presentation/mixins/contacts_view_controller_mixin.dart +++ b/lib/presentation/mixins/contacts_view_controller_mixin.dart @@ -134,6 +134,11 @@ mixin class ContactsViewControllerMixin { ); presentationPhonebookContactNotifier.value = const Right(GetPhonebookContactsInitial()); + _refreshRecentContacts( + client: client, + keyword: keyword.isEmpty ? null : keyword, + matrixLocalizations: matrixLocalizations, + ); return; } _refreshContacts(keyword); @@ -320,4 +325,15 @@ mixin class ContactsViewControllerMixin { presentationPhonebookContactNotifier.dispose(); presentationRecentContactNotifier.dispose(); } + + @visibleForTesting + void refreshAllContactsTest({ + required Client client, + required MatrixLocalizations matrixLocalizations, + }) { + _refreshAllContacts( + client: client, + matrixLocalizations: matrixLocalizations, + ); + } }