diff --git a/CHANGELOG.md b/CHANGELOG.md index e51cb8bc..e924ddc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.2.11+1 + +- Fix error with channel query while handling background notifications + ## 0.2.11 - Update llc dependency diff --git a/example/pubspec.yaml b/example/pubspec.yaml index c56b9834..9f50d014 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -1,6 +1,6 @@ name: example description: A new Flutter project. -version: 1.0.22+23 +version: 1.0.24+25 environment: sdk: ">=2.2.2 <3.0.0" diff --git a/lib/src/stream_chat.dart b/lib/src/stream_chat.dart index dfc6095b..081849b5 100644 --- a/lib/src/stream_chat.dart +++ b/lib/src/stream_chat.dart @@ -188,8 +188,8 @@ class StreamChatState extends State with WidgetsBindingObserver { if (channel == null) { channel = client.channel( - event.type, - id: event.cid.split(':')[1], + event.channelType, + id: event.channelId, ); await channel.query(); } diff --git a/pubspec.yaml b/pubspec.yaml index 56d2270d..70e4ed1e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: stream_chat_flutter homepage: https://github.com/GetStream/stream-chat-flutter description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter. -version: 0.2.11 +version: 0.2.11+1 repository: https://github.com/GetStream/stream-chat-flutter issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues