mod: 回复内容转义替换

This commit is contained in:
guozhigq
2023-07-12 23:33:46 +08:00
parent 828b5c39aa
commit 3f457aa7f6

View File

@ -1,14 +1,13 @@
class ReplyContent {
ReplyContent({
this.message,
this.atNameToMid, // @的用户的mid null
this.memebers, // 被@的用户List 如果有的话 []
this.emote, // 表情包 如果有的话 null
this.jumpUrl, // {}
this.pictures, // {}
this.vote,
this.richText
});
ReplyContent(
{this.message,
this.atNameToMid, // @的用户的mid null
this.memebers, // 被@的用户List 如果有的话 []
this.emote, // 表情包 如果有的话 null
this.jumpUrl, // {}
this.pictures, // {}
this.vote,
this.richText});
String? message;
Map? atNameToMid;
@ -20,7 +19,7 @@ class ReplyContent {
Map? richText;
ReplyContent.fromJson(Map<String, dynamic> json) {
message = json['message'];
message = json['message'].replaceAll('&gt;', '>').replaceAll('&#34;', '"');
atNameToMid = json['at_name_to_mid'] ?? {};
memebers = json['memebers'] ?? [];
emote = json['emote'] ?? {};