Refactor code for improved readability and null safety in various files Also updated PR to allow login via map.
This commit is contained in:
1 parent
be3b920b3f
commit
8c3ffa5472
5 files changed
+54
-22
No files matched your search
@@ -87,7 +87,9 @@ 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)),
|
||||
fourByteRoomContactKey: json['fourByteRoomContactKey'] != null
|
||||
? Uint8List.fromList(base64Decode(json['fourByteRoomContactKey'] as String))
|
||||
: null,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user