mirror of
https://github.com/WuKongIM/WuKongIMFlutterSDK
synced 2025-05-30 23:47:26 +00:00
Modify the editing message method parameters
This commit is contained in:
parent
18396b08c8
commit
39fe1e321f
@ -53,4 +53,6 @@
|
|||||||
### 1.2.6
|
### 1.2.6
|
||||||
* update query message extra data
|
* update query message extra data
|
||||||
### 1.2.7
|
### 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:
|
dependencies:
|
||||||
wukongimfluttersdk: ^1.2.7
|
wukongimfluttersdk: ^1.2.8
|
||||||
```
|
```
|
||||||
#### 引入
|
#### 引入
|
||||||
```dart
|
```dart
|
||||||
|
@ -661,7 +661,7 @@ class WKMessageManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateMsgEdit(String messageID, String channelID, int channelType,
|
updateMsgEdit(String messageID, String channelID, int channelType,
|
||||||
String content) async {
|
Map<String, dynamic> content) async {
|
||||||
var msgExtra = await MessageDB.shared.queryMsgExtraWithMsgID(messageID);
|
var msgExtra = await MessageDB.shared.queryMsgExtraWithMsgID(messageID);
|
||||||
msgExtra ??= WKMsgExtra();
|
msgExtra ??= WKMsgExtra();
|
||||||
msgExtra.messageID = messageID;
|
msgExtra.messageID = messageID;
|
||||||
@ -669,7 +669,7 @@ class WKMessageManager {
|
|||||||
msgExtra.channelType = channelType;
|
msgExtra.channelType = channelType;
|
||||||
msgExtra.editedAt =
|
msgExtra.editedAt =
|
||||||
(DateTime.now().millisecondsSinceEpoch / 1000).truncate();
|
(DateTime.now().millisecondsSinceEpoch / 1000).truncate();
|
||||||
msgExtra.contentEdit = content;
|
msgExtra.contentEdit = jsonEncode(content);
|
||||||
msgExtra.needUpload = 1;
|
msgExtra.needUpload = 1;
|
||||||
List<WKMsgExtra> list = [];
|
List<WKMsgExtra> list = [];
|
||||||
list.add(msgExtra);
|
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
|
# 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.2.7
|
version: 1.2.8
|
||||||
homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK
|
homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user