feat(llc): expose presence property in Channel::watch method

This commit is contained in:
Rafał Adasiewicz
2023-02-09 13:14:44 +01:00
parent 320067ce06
commit cc1ad224e2
2 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -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
@@ -1234,11 +1234,11 @@ class Channel {
}
/// Loads the initial channel state and watches for changes.
Future<ChannelState> watch() async {
Future<ChannelState> 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);