fmt and changelog
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
## Upcoming
|
||||||
|
|
||||||
|
🐞 Fixed
|
||||||
|
|
||||||
|
- markAllRead() now updates channel states.
|
||||||
|
|
||||||
## 3.1.1
|
## 3.1.1
|
||||||
|
|
||||||
✅ Added
|
✅ Added
|
||||||
|
|||||||
@@ -1411,10 +1411,9 @@ class ClientState {
|
|||||||
_subscriptions
|
_subscriptions
|
||||||
.add(_client.on(EventType.notificationMarkRead).listen((event) {
|
.add(_client.on(EventType.notificationMarkRead).listen((event) {
|
||||||
if (event.cid == null) {
|
if (event.cid == null) {
|
||||||
channels
|
channels.forEach((key, value) {
|
||||||
.forEach((key, value) {
|
value.state?.unreadCount = 0;
|
||||||
value.state?.unreadCount = 0;
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user