diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index e4f9abb4..1c8cea49 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -3114,6 +3114,7 @@ class MeshCoreConnector extends ChangeNotifier { // No check for duplicates. If you want to do it again to resend, you can. final String reactionID = reactionInfo.identifier(); + _processedContactReactions.putIfAbsent(contact.publicKeyHex, () => {}); _processedContactReactions[contact.publicKeyHex]!.add(reactionID); // Apply reaction locally with pending status diff --git a/lib/storage/channel_message_store.dart b/lib/storage/channel_message_store.dart index 3a15216b..2d99f501 100644 --- a/lib/storage/channel_message_store.dart +++ b/lib/storage/channel_message_store.dart @@ -199,7 +199,7 @@ class ChannelMessageStore { key, (value is int) ? List.filled(value, null) - : value as List, + : List.from(value), ), ) ?? {}, diff --git a/lib/storage/message_store.dart b/lib/storage/message_store.dart index 0caef888..52f632b4 100644 --- a/lib/storage/message_store.dart +++ b/lib/storage/message_store.dart @@ -175,7 +175,7 @@ class MessageStore { key, (value is int) ? List.filled(value, null) - : value as List, + : List.from(value), ), ) ?? {},