diff --git a/CHANGELOG.md b/CHANGELOG.md index befb0ad..d426e98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,4 +57,6 @@ ### 1.2.8 * Modify the editing message method parameters ### 1.2.9 - * Modification of sending messages containing replies or tag class message parsing errors \ No newline at end of file + * Modification of sending messages containing replies or tag class message parsing errors + ### 1.3.0 + * Modification of sending messages containing replies error \ No newline at end of file diff --git a/README.md b/README.md index 708f99e..4e9d34a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ #### 安装 ``` dependencies: - wukongimfluttersdk: ^1.2.9 + wukongimfluttersdk: ^1.3.0 ``` #### 引入 ```dart diff --git a/example/lib/chat.dart b/example/lib/chat.dart index 50e7da8..a6e76d3 100644 --- a/example/lib/chat.dart +++ b/example/lib/chat.dart @@ -374,6 +374,8 @@ class ChatListDataState extends State { reply.rootMid = "111"; reply.fromUID = "11"; reply.fromName = "12"; + WKTextContent payloadText = WKTextContent("dds"); + reply.payload = payloadText; text.reply = reply; List list = []; WKMsgEntity entity = WKMsgEntity(); diff --git a/lib/entity/msg.dart b/lib/entity/msg.dart index ccb68ef..f2e0953 100644 --- a/lib/entity/msg.dart +++ b/lib/entity/msg.dart @@ -262,9 +262,10 @@ class WKReply { messageSeq = WKDBConst.readInt(data, 'message_seq'); fromUID = WKDBConst.readString(data, 'from_uid'); fromName = WKDBConst.readString(data, 'from_name'); - String contentJson = WKDBConst.readString(data, 'payload'); - if (contentJson != '') { - var json = jsonDecode(contentJson); + var json = data['payload']; + // String contentJson = WKDBConst.readString(data, 'payload'); + if (json != null) { + // var json = jsonDecode(contentJson); var type = json['type']; payload = WKIM.shared.messageManager.getMessageModel(type, json); } diff --git a/pubspec.yaml b/pubspec.yaml index e0ca37b..4c915b8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ description: wukong IM flutter sdk # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.2.9 +version: 1.3.0 homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK environment: