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.
This commit is contained in:
avashilling 2025-08-01 15:16:03 -04:00 committed by GitHub
parent e58529ffc7
commit f4bef7f3e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1818,7 +1818,10 @@ class ChatController extends State<ChatPageWithRoom>
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);
}