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:
parent
e58529ffc7
commit
f4bef7f3e4
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue