From a3d27ada8480f2c2843d54956bc1e7e781a2a5e6 Mon Sep 17 00:00:00 2001 From: Vishal <64505169+vishalxl@users.noreply.github.com> Date: Thu, 15 Sep 2022 21:30:14 +0530 Subject: [PATCH] properly updated channel for incoming 42 message Otherwise it was going to wrong/new room if it was a reply. --- lib/tree_ds.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tree_ds.dart b/lib/tree_ds.dart index e12a53b..fe93ca9 100644 --- a/lib/tree_ds.dart +++ b/lib/tree_ds.dart @@ -854,7 +854,7 @@ class Store { case 42: newTree.event.eventData.isNotification = true; // highlight it too in next printing // add 42 chat message event id to its chat room - String channelId = newTree.event.eventData.getParent(); + String channelId = newTree.event.eventData.getChannelIdForMessage(); if( channelId != "") { Channel? channel = getChannel(channels, channelId); if( channel != null) {