Fix errors in new reaction processing
In meshcore_connector.dart, Initialize _processedContactReactions in outgoing reactions for DMs In channel_message_store.dart & message_store.dart, Handle reaction lists properly to un-break message loading.
This commit is contained in:
1 parent
76b34779cf
commit
df560a2fbc
3 files changed
+3
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -199,7 +199,7 @@ class ChannelMessageStore {
|
||||
key,
|
||||
(value is int)
|
||||
? List<String?>.filled(value, null)
|
||||
: value as List<String?>,
|
||||
: List<String?>.from(value),
|
||||
),
|
||||
) ??
|
||||
{},
|
||||
|
||||
@@ -175,7 +175,7 @@ class MessageStore {
|
||||
key,
|
||||
(value is int)
|
||||
? List<String?>.filled(value, null)
|
||||
: value as List<String?>,
|
||||
: List<String?>.from(value),
|
||||
),
|
||||
) ??
|
||||
{},
|
||||
|
||||
Reference in new issue
Block a user