Skip to content

Commit

Permalink
TW-1825: Fix search results aren't displayed correctly when copy/paste
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev committed Jun 13, 2024
1 parent 03b6929 commit 069edcd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/presentation/mixins/contacts_view_controller_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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,
);
}
}

0 comments on commit 069edcd

Please sign in to comment.