♻️ Moved the chat page to use local db

This commit is contained in:
2024-06-23 13:27:21 +08:00
parent 34706531ad
commit 52e5dd6860
5 changed files with 167 additions and 78 deletions

View File

@ -47,7 +47,8 @@ class Message {
attachments: json["attachments"] != null
? List<int>.from(json["attachments"])
: null,
channel: Channel.fromJson(json['channel']),
channel:
json['channel'] != null ? Channel.fromJson(json['channel']) : null,
sender: Sender.fromJson(json['sender']),
replyId: json['reply_id'],
replyTo: json['reply_to'] != null