diff --git a/lib/controllers/chat_message_controller.dart b/lib/controllers/chat_message_controller.dart index 8949c81..a4c4d3b 100644 --- a/lib/controllers/chat_message_controller.dart +++ b/lib/controllers/chat_message_controller.dart @@ -74,6 +74,7 @@ class ChatMessageController extends ChangeNotifier { _wsSubscription = _ws.stream.stream.listen((event) { switch (event.method) { case 'events.new': + if (event.payload?['channel_id'] != channel?.id) break; final payload = SnChatMessage.fromJson(event.payload!); _addMessage(payload); break;