mirror of
https://github.com/WuKongIM/WuKongIMFlutterSDK
synced 2025-05-29 07:02:19 +00:00
Modify the editing message method parameters
This commit is contained in:
parent
18396b08c8
commit
39fe1e321f
@ -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
|
@ -9,7 +9,7 @@
|
||||
#### 安装
|
||||
```
|
||||
dependencies:
|
||||
wukongimfluttersdk: ^1.2.7
|
||||
wukongimfluttersdk: ^1.2.8
|
||||
```
|
||||
#### 引入
|
||||
```dart
|
||||
|
@ -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);
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user