Added value to Message fourByteRoomContactKey which holds the first 4 bytes of the contacts pub key that posted the message to the room.

This commit is contained in:
Winston Lowe
2026-01-09 00:03:50 -08:00
parent fca810737d
commit 367f89fb1b
3 changed files with 15 additions and 9 deletions
+2
View File
@@ -52,6 +52,7 @@ class MessageStore {
'pathLength': msg.pathLength,
'pathBytes': msg.pathBytes.isNotEmpty ? base64Encode(msg.pathBytes) : null,
'reactions': msg.reactions,
'fourByteRoomContactKey': base64Encode(msg.fourByteRoomContactKey),
};
}
@@ -86,6 +87,7 @@ class MessageStore {
reactions: (json['reactions'] as Map<String, dynamic>?)?.map(
(key, value) => MapEntry(key, value as int),
) ?? {},
fourByteRoomContactKey: Uint8List.fromList(base64Decode(json['fourByteRoomContactKey'] as String)),
);
}
}