diff --git a/packages/stream_chat/CHANGELOG.md b/packages/stream_chat/CHANGELOG.md index f0ee6485..04a47600 100644 --- a/packages/stream_chat/CHANGELOG.md +++ b/packages/stream_chat/CHANGELOG.md @@ -2,13 +2,16 @@ 🐞 Fixed -- Fixed streamWatchers. Before it was always new, now it is possible to follow the watchers of a channel. -## Upcoming +- Fixed streamWatchers. Before it was always new, now it is possible to follow the watchers of a channel. 🔄 Changed - Cancelling a attachment upload now removes the attachment from the message. +✅ Added + +- Added `presence` property to `Channel::watch` method. + ## 5.3.0 🔄 Changed diff --git a/packages/stream_chat/lib/src/client/channel.dart b/packages/stream_chat/lib/src/client/channel.dart index 528a0fee..7d8515c7 100644 --- a/packages/stream_chat/lib/src/client/channel.dart +++ b/packages/stream_chat/lib/src/client/channel.dart @@ -1234,11 +1234,11 @@ class Channel { } /// Loads the initial channel state and watches for changes. - Future watch() async { + Future watch({bool presence = false}) async { ChannelState response; try { - response = await query(watch: true); + response = await query(watch: true, presence: presence); } catch (error, stackTrace) { if (!_initializedCompleter.isCompleted) { _initializedCompleter.completeError(error, stackTrace);