update llc repo

This commit is contained in:
Salvatore Giordano
2021-01-14 12:24:16 +01:00
parent 9544208cb3
commit be75bf3fb3
6 changed files with 50 additions and 26 deletions
@@ -428,6 +428,8 @@ class Channel {
/// Mark all channel messages as read
Future<EmptyResponse> markRead() async {
_checkInitialized();
client.state.totalUnreadCount =
max(0, (client.state.totalUnreadCount ?? 0) - (state.unreadCount ?? 0));
state._unreadCountController.add(0);
final response = await _client.post('$_channelURL/read', data: {});
return _client.decode(response.data, EmptyResponse.fromJson);