mirror of
https://github.com/WuKongIM/WuKongIMFlutterSDK
synced 2025-05-29 07:02:19 +00:00
Modifying message parsing errors with reminder items
This commit is contained in:
parent
cf5ce0edbe
commit
06dcb9591d
@ -31,4 +31,6 @@
|
||||
### 1.1.5
|
||||
* update connnection device id with uid
|
||||
### 1.1.6
|
||||
* New features such as message likes and replies added
|
||||
* New features such as message likes and replies added
|
||||
### 1.1.7
|
||||
* Modifying message parsing errors with reminder itemss
|
@ -9,7 +9,7 @@
|
||||
#### 安装
|
||||
```
|
||||
dependencies:
|
||||
wukongimfluttersdk: ^1.1.6
|
||||
wukongimfluttersdk: ^1.1.7
|
||||
```
|
||||
#### 引入
|
||||
```dart
|
||||
|
@ -499,7 +499,7 @@ packages:
|
||||
path: ".."
|
||||
relative: true
|
||||
source: path
|
||||
version: "1.1.6"
|
||||
version: "1.1.7"
|
||||
x25519:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -67,17 +67,19 @@ class WKMessageManager {
|
||||
content.reply = reply;
|
||||
}
|
||||
var entities = WKDBConst.readString(json, 'entities');
|
||||
var jsonArray = jsonDecode(entities);
|
||||
List<WKMsgEntity> list = [];
|
||||
for (var entityJson in jsonArray) {
|
||||
WKMsgEntity entity = WKMsgEntity();
|
||||
entity.type = WKDBConst.readString(entityJson, 'type');
|
||||
entity.offset = WKDBConst.readInt(entityJson, 'offset');
|
||||
entity.length = WKDBConst.readInt(entityJson, 'length');
|
||||
entity.value = WKDBConst.readString(entityJson, 'value');
|
||||
list.add(entity);
|
||||
if (entities != '') {
|
||||
var jsonArray = jsonDecode(entities);
|
||||
List<WKMsgEntity> list = [];
|
||||
for (var entityJson in jsonArray) {
|
||||
WKMsgEntity entity = WKMsgEntity();
|
||||
entity.type = WKDBConst.readString(entityJson, 'type');
|
||||
entity.offset = WKDBConst.readInt(entityJson, 'offset');
|
||||
entity.length = WKDBConst.readInt(entityJson, 'length');
|
||||
entity.value = WKDBConst.readString(entityJson, 'value');
|
||||
list.add(entity);
|
||||
}
|
||||
content.entities = list;
|
||||
}
|
||||
content.entities = list;
|
||||
return content;
|
||||
}
|
||||
|
||||
|
@ -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.1.6
|
||||
version: 1.1.7
|
||||
homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK
|
||||
|
||||
environment:
|
||||
|
Loading…
x
Reference in New Issue
Block a user