Modify the editing message method parameters

This commit is contained in:
SL 2024-02-21 17:03:28 +08:00
parent 18396b08c8
commit 39fe1e321f
4 changed files with 7 additions and 5 deletions

View File

@ -53,4 +53,6 @@
### 1.2.6
* update query message extra data
### 1.2.7
* update query channel member avatar
* update query channel member avatar
### 1.2.8
* Modify the editing message method parameters

View File

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

View File

@ -661,7 +661,7 @@ class WKMessageManager {
}
updateMsgEdit(String messageID, String channelID, int channelType,
String content) async {
Map<String, dynamic> content) async {
var msgExtra = await MessageDB.shared.queryMsgExtraWithMsgID(messageID);
msgExtra ??= WKMsgExtra();
msgExtra.messageID = messageID;
@ -669,7 +669,7 @@ class WKMessageManager {
msgExtra.channelType = channelType;
msgExtra.editedAt =
(DateTime.now().millisecondsSinceEpoch / 1000).truncate();
msgExtra.contentEdit = content;
msgExtra.contentEdit = jsonEncode(content);
msgExtra.needUpload = 1;
List<WKMsgExtra> list = [];
list.add(msgExtra);

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.2.7
version: 1.2.8
homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK
environment: