fix persistence bugs and update example

This commit is contained in:
Salvatore Giordano
2021-02-01 16:50:52 +01:00
parent fbf5e125c6
commit 711c20b967
5 changed files with 38 additions and 17 deletions
@@ -47,7 +47,7 @@ extension MessageX on Message {
MessageEntity toEntity({String cid}) {
return MessageEntity(
id: id,
attachments: attachments.map((it) => jsonEncode(it)).toList(),
attachments: attachments?.map((it) => jsonEncode(it))?.toList() ?? [],
channelCid: cid,
type: type,
parentId: parentId,