mirror of
https://github.com/WuKongIM/WuKongIMFlutterSDK
synced 2025-05-31 07:57:26 +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
|
### 1.1.5
|
||||||
* update connnection device id with uid
|
* update connnection device id with uid
|
||||||
### 1.1.6
|
### 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:
|
dependencies:
|
||||||
wukongimfluttersdk: ^1.1.6
|
wukongimfluttersdk: ^1.1.7
|
||||||
```
|
```
|
||||||
#### 引入
|
#### 引入
|
||||||
```dart
|
```dart
|
||||||
|
@ -499,7 +499,7 @@ packages:
|
|||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "1.1.6"
|
version: "1.1.7"
|
||||||
x25519:
|
x25519:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -67,17 +67,19 @@ class WKMessageManager {
|
|||||||
content.reply = reply;
|
content.reply = reply;
|
||||||
}
|
}
|
||||||
var entities = WKDBConst.readString(json, 'entities');
|
var entities = WKDBConst.readString(json, 'entities');
|
||||||
var jsonArray = jsonDecode(entities);
|
if (entities != '') {
|
||||||
List<WKMsgEntity> list = [];
|
var jsonArray = jsonDecode(entities);
|
||||||
for (var entityJson in jsonArray) {
|
List<WKMsgEntity> list = [];
|
||||||
WKMsgEntity entity = WKMsgEntity();
|
for (var entityJson in jsonArray) {
|
||||||
entity.type = WKDBConst.readString(entityJson, 'type');
|
WKMsgEntity entity = WKMsgEntity();
|
||||||
entity.offset = WKDBConst.readInt(entityJson, 'offset');
|
entity.type = WKDBConst.readString(entityJson, 'type');
|
||||||
entity.length = WKDBConst.readInt(entityJson, 'length');
|
entity.offset = WKDBConst.readInt(entityJson, 'offset');
|
||||||
entity.value = WKDBConst.readString(entityJson, 'value');
|
entity.length = WKDBConst.readInt(entityJson, 'length');
|
||||||
list.add(entity);
|
entity.value = WKDBConst.readString(entityJson, 'value');
|
||||||
|
list.add(entity);
|
||||||
|
}
|
||||||
|
content.entities = list;
|
||||||
}
|
}
|
||||||
content.entities = list;
|
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ description: wukong IM flutter sdk
|
|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# 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
|
# 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.
|
# 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
|
homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user