fix update channel debounce
This commit is contained in:
@@ -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,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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user