From c2d582f1f71961c4695e1e52b6c9ec69c64f9a0b Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sat, 10 Sep 2022 20:49:28 +0200 Subject: [PATCH] chore: Add keys to roomlist and stories header --- lib/pages/chat_list/chat_list_body.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pages/chat_list/chat_list_body.dart b/lib/pages/chat_list/chat_list_body.dart index 61e7cdc7..6f374ab5 100644 --- a/lib/pages/chat_list/chat_list_body.dart +++ b/lib/pages/chat_list/chat_list_body.dart @@ -136,6 +136,7 @@ class ChatListViewBody extends StatelessWidget { ), if (displayStoriesHeader) StoriesHeader( + key: const Key('stories_header'), filter: controller.searchController.text, ), const ConnectionStatusHeader(), @@ -197,6 +198,7 @@ class ChatListViewBody extends StatelessWidget { } return ChatListItem( rooms[i], + key: Key('chat_list_item_${rooms[i].id}'), selected: controller.selectedRoomIds.contains(rooms[i].id), onTap: controller.selectMode == SelectMode.select ? () => controller.toggleSelection(rooms[i].id)