mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-21 09:55:27 +10:00
Msg Retry fixes, channel message fixes. Notification fixes. Make more desktop friendly. Enhance retry algo. Fix predicted location clustering add retries to reactions and fix the reactions in private DMS centralize and cleanup code in var areas
This commit is contained in:
@@ -108,6 +108,7 @@ class ChannelMessageStore {
|
||||
'pathVariants': msg.pathVariants.map(base64Encode).toList(),
|
||||
'repeats': msg.repeats.map(_repeatToJson).toList(),
|
||||
'messageId': msg.messageId,
|
||||
'packetHash': msg.packetHash,
|
||||
'replyToMessageId': msg.replyToMessageId,
|
||||
'replyToSenderName': msg.replyToSenderName,
|
||||
'replyToText': msg.replyToText,
|
||||
@@ -143,6 +144,7 @@ class ChannelMessageStore {
|
||||
const [],
|
||||
channelIndex: json['channelIndex'] as int?,
|
||||
messageId: json['messageId'] as String?,
|
||||
packetHash: json['packetHash'] as String?,
|
||||
replyToMessageId: json['replyToMessageId'] as String?,
|
||||
replyToSenderName: json['replyToSenderName'] as String?,
|
||||
replyToText: json['replyToText'] as String?,
|
||||
|
||||
@@ -96,6 +96,9 @@ class MessageStore {
|
||||
? base64Encode(msg.pathBytes)
|
||||
: null,
|
||||
'reactions': msg.reactions,
|
||||
'reactionStatuses': msg.reactionStatuses.map(
|
||||
(key, value) => MapEntry(key, value.index),
|
||||
),
|
||||
'fourByteRoomContactKey': base64Encode(msg.fourByteRoomContactKey),
|
||||
};
|
||||
}
|
||||
@@ -135,6 +138,11 @@ class MessageStore {
|
||||
(key, value) => MapEntry(key, value as int),
|
||||
) ??
|
||||
{},
|
||||
reactionStatuses:
|
||||
(json['reactionStatuses'] as Map<String, dynamic>?)?.map(
|
||||
(key, value) => MapEntry(key, MessageStatus.values[value as int]),
|
||||
) ??
|
||||
{},
|
||||
fourByteRoomContactKey: json['fourByteRoomContactKey'] != null
|
||||
? Uint8List.fromList(
|
||||
base64Decode(json['fourByteRoomContactKey'] as String),
|
||||
|
||||
Reference in New Issue
Block a user