fix update channel debounce

This commit is contained in:
Salvatore Giordano
2021-03-01 13:15:39 +01:00
parent 586e9dab5e
commit 3d43c84fbb
3 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
## 1.3.2-beta ## 1.3.2+1-beta
- Fixed queryChannels bug - Fixed queryChannels bug
@@ -1692,11 +1692,14 @@ class ChannelClientState {
set _channelState(ChannelState v) { set _channelState(ChannelState v) {
_channelStateController.add(v); _channelStateController.add(v);
debounce(
timeout: Duration(milliseconds: 500), if (_channel._client.persistenceEnabled) {
target: _channel._client.chatPersistenceClient?.updateChannelState, debounce(
positionalArguments: [v], timeout: Duration(milliseconds: 500),
); target: _channel._client.chatPersistenceClient?.updateChannelState,
positionalArguments: [v],
);
}
} }
/// The channel threads related to this channel /// The channel threads related to this channel
+1 -1
View File
@@ -1,7 +1,7 @@
name: stream_chat name: stream_chat
homepage: https://getstream.io/ homepage: https://getstream.io/
description: The official Dart client for Stream Chat, a service for building chat applications. description: The official Dart client for Stream Chat, a service for building chat applications.
version: 1.3.2-beta version: 1.3.2+1-beta
repository: https://github.com/GetStream/stream-chat-flutter repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues