Skip to content

Commit 58c897d

Browse files
authored
fix: use a key for room pinned button (#19)
1 parent 1a6164d commit 58c897d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/chat/chat_room/titlebar/chat_room_title_bar.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ class ChatRoomTitleBar extends StatelessWidget implements PreferredSizeWidget {
4545
actions: space(
4646
widthGap: kSmallPadding,
4747
children: [
48-
if (!room.isArchived) ChatRoomPinButton(room: room),
48+
if (!room.isArchived)
49+
ChatRoomPinButton(
50+
key: ValueKey('${room.id}_${room.roomAccountData.length}'),
51+
room: room,
52+
),
4953
IconButton(
5054
onPressed: () =>
5155
chatRoomScaffoldKey.currentState?.openEndDrawer(),

0 commit comments

Comments
 (0)