mod: show RICH_TEXT_NODE_TYPE_VIEW_PICTURE

Closes #691

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-16 07:33:10 +08:00
parent bc8907b3ef
commit 2cc9324f08
4 changed files with 54 additions and 23 deletions

View File

@@ -598,6 +598,7 @@ class RichTextNodeItem {
String? text;
String? type;
String? rid;
List<OpusPicsModel>? pics;
RichTextNodeItem.fromJson(Map<String, dynamic> json) {
emoji = json['emoji'] != null ? Emoji.fromJson(json['emoji']) : null;
@@ -605,6 +606,11 @@ class RichTextNodeItem {
text = json['text'];
type = json['type'];
rid = json['rid'];
pics = json['pics'] == null
? null
: (json['pics'] as List?)
?.map((e) => OpusPicsModel.fromJson(e))
.toList();
}
}