mirror of
https://github.com/WuKongIM/WuKongIMFlutterSDK
synced 2025-05-29 15:12:20 +00:00
Modifying sending messages without notification to refresh recent sessions
This commit is contained in:
parent
f73d03423d
commit
5f073e3b62
@ -9,4 +9,6 @@
|
||||
### 1.0.4
|
||||
* update manager method of obtaining
|
||||
### 1.0.5
|
||||
* Optimize processing of incorrect data
|
||||
* Optimize processing of incorrect data
|
||||
### 1.0.6
|
||||
* Update sending messages without notification to refresh conversation messsage
|
@ -9,7 +9,7 @@
|
||||
#### 安装
|
||||
```
|
||||
dependencies:
|
||||
wukongimfluttersdk: ^1.0.5
|
||||
wukongimfluttersdk: ^1.0.6
|
||||
```
|
||||
#### 引入
|
||||
```dart
|
||||
|
@ -499,7 +499,7 @@ packages:
|
||||
path: ".."
|
||||
relative: true
|
||||
source: path
|
||||
version: "1.0.5"
|
||||
version: "1.0.6"
|
||||
x25519:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -10,6 +10,7 @@ import 'package:wukongimfluttersdk/model/wk_media_message_content.dart';
|
||||
import 'package:wukongimfluttersdk/type/const.dart';
|
||||
|
||||
import '../entity/channel.dart';
|
||||
import '../entity/conversation.dart';
|
||||
import '../model/wk_message_content.dart';
|
||||
import '../model/wk_unknown_content.dart';
|
||||
import '../wkim.dart';
|
||||
@ -336,6 +337,13 @@ class WKMessageManager {
|
||||
int row = await saveMsg(wkMsg);
|
||||
wkMsg.clientSeq = row;
|
||||
WKIM.shared.messageManager.setOnMsgInserted(wkMsg);
|
||||
if (row > 0) {
|
||||
WKUIConversationMsg? uiMsg =
|
||||
await WKIM.shared.conversationManager.saveWithLiMMsg(wkMsg);
|
||||
if (uiMsg != null) {
|
||||
WKIM.shared.conversationManager.setRefreshMsg(uiMsg, true);
|
||||
}
|
||||
}
|
||||
if (wkMsg.messageContent is WKMediaMessageContent) {
|
||||
// 附件消息
|
||||
if (_uploadAttachmentBack != null) {
|
||||
|
@ -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.0.5
|
||||
version: 1.0.6
|
||||
homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK
|
||||
|
||||
environment:
|
||||
|
Loading…
x
Reference in New Issue
Block a user