fix persistence bugs and update example
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user