mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: show RICH_TEXT_NODE_TYPE_VIEW_PICTURE
Closes #691 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user