From 1285f82a6488b6aa6e017bc4c288aadebd21318b Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Mon, 9 Nov 2020 09:44:10 +0100 Subject: [PATCH] fix condition --- lib/src/stream_chat.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/stream_chat.dart b/lib/src/stream_chat.dart index d11f5fef..081849b5 100644 --- a/lib/src/stream_chat.dart +++ b/lib/src/stream_chat.dart @@ -186,7 +186,7 @@ class StreamChatState extends State with WidgetsBindingObserver { .listen((event) async { var channel = client.state.channels[event.cid]; - if (channel != null) { + if (channel == null) { channel = client.channel( event.channelType, id: event.channelId,