mirror of
https://github.com/WuKongIM/WuKongIMFlutterSDK
synced 2025-05-29 23:22:52 +00:00
Modification of sending messages containing replies error
This commit is contained in:
parent
b23f6d3a45
commit
4c83ae1697
@ -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
|
||||
* Modification of sending messages containing replies or tag class message parsing errors
|
||||
### 1.3.0
|
||||
* Modification of sending messages containing replies error
|
@ -9,7 +9,7 @@
|
||||
#### 安装
|
||||
```
|
||||
dependencies:
|
||||
wukongimfluttersdk: ^1.2.9
|
||||
wukongimfluttersdk: ^1.3.0
|
||||
```
|
||||
#### 引入
|
||||
```dart
|
||||
|
@ -374,6 +374,8 @@ class ChatListDataState extends State<ChatList> {
|
||||
reply.rootMid = "111";
|
||||
reply.fromUID = "11";
|
||||
reply.fromName = "12";
|
||||
WKTextContent payloadText = WKTextContent("dds");
|
||||
reply.payload = payloadText;
|
||||
text.reply = reply;
|
||||
List<WKMsgEntity> list = [];
|
||||
WKMsgEntity entity = WKMsgEntity();
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user