From f4bef7f3e4d52aea71777e1c566bb740ba01fcb3 Mon Sep 17 00:00:00 2001 From: avashilling <165050625+avashilling@users.noreply.github.com> Date: Fri, 1 Aug 2025 15:16:03 -0400 Subject: [PATCH] 3607 pinned message highlight persists after unpinning (#3615) * fix: unhighlight messages on unpin * remove unnecessary setState * reset scroll marker when unpinned to remove highlight * fix: calls unpin function from message actions Adds more security to unpinning by displaying the same confirmation dialog about unpinning in both places you can do it. --- lib/pages/chat/chat.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index 1f7c661b9..85be85d36 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -1818,7 +1818,10 @@ class ChatController extends State final unpin = selectedEventIds.length == 1 && pinnedEventIds.contains(selectedEventIds.single); if (unpin) { - pinnedEventIds.removeWhere(selectedEventIds.contains); + // #Pangea + //pinnedEventIds.removeWhere(selectedEventIds.contains); + unpinEvent(selectedEventIds.single); + // Pangea# } else { pinnedEventIds.addAll(selectedEventIds); }