Modifying message parsing errors with reminder items

This commit is contained in:
SL 2023-11-07 10:13:39 +08:00
parent cf5ce0edbe
commit 06dcb9591d
5 changed files with 18 additions and 14 deletions

View File

@ -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

View File

@ -9,7 +9,7 @@
#### 安装
```
dependencies:
wukongimfluttersdk: ^1.1.6
wukongimfluttersdk: ^1.1.7
```
#### 引入
```dart

View File

@ -499,7 +499,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.1.6"
version: "1.1.7"
x25519:
dependency: transitive
description:

View File

@ -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;
}

View File

@ -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: