3607 pinned message highlight persists after unpinning (#3611)
* fix: unhighlight messages on unpin * remove unnecessary setState * reset scroll marker when unpinned to remove highlight
This commit is contained in:
parent
f19d717e87
commit
e58529ffc7
1 changed files with 7 additions and 0 deletions
|
|
@ -1795,6 +1795,13 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
if (response == OkCancelResult.ok) {
|
||||
final events = room.pinnedEventIds
|
||||
..removeWhere((oldEvent) => oldEvent == eventId);
|
||||
// #Pangea
|
||||
if (scrollToEventIdMarker == eventId) {
|
||||
setState(() {
|
||||
scrollToEventIdMarker = null;
|
||||
});
|
||||
}
|
||||
// Pangea#
|
||||
showFutureLoadingDialog(
|
||||
context: context,
|
||||
future: () => room.setPinnedEvents(events),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue