Skip to content

Commit

Permalink
Merge pull request #130 from GetStream/hotfix/channelQueryOnLocalNoti…
Browse files Browse the repository at this point in the history
…fication

channel query on local notification was using event.type
  • Loading branch information
deven98 authored Nov 9, 2020
2 parents d884095 + 7740932 commit 0df738f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.11+1

- Fix error with channel query while handling background notifications

## 0.2.11

- Update llc dependency
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions lib/src/stream_chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ class StreamChatState extends State<StreamChat> with WidgetsBindingObserver {

if (channel == null) {
channel = client.channel(
event.type,
id: event.cid.split(':')[1],
event.channelType,
id: event.channelId,
);
await channel.query();
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 0df738f

Please sign in to comment.