From 45fabb40a02cc4c5fd795f6e8fbc279ee1f4a216 Mon Sep 17 00:00:00 2001 From: MinhDV Date: Thu, 5 Oct 2023 11:00:27 +0700 Subject: [PATCH] fix: Search contacts cached --- .../new_private_chat/widget/expansion_contact_list_tile.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pages/new_private_chat/widget/expansion_contact_list_tile.dart b/lib/pages/new_private_chat/widget/expansion_contact_list_tile.dart index a4a97b949..6b0e6202e 100644 --- a/lib/pages/new_private_chat/widget/expansion_contact_list_tile.dart +++ b/lib/pages/new_private_chat/widget/expansion_contact_list_tile.dart @@ -29,6 +29,7 @@ class ExpansionContactListTile extends StatelessWidget { return Padding( padding: const EdgeInsets.only(left: 8.0, top: 8.0, bottom: 12.0), child: FutureBuilder( + key: contact.matrixId != null ? Key(contact.matrixId!) : null, future: contact.status == ContactStatus.active ? getProfile(context) : null, builder: (context, snapshot) {