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, + ); + } }