Modifying sending messages without notification to refresh recent sessions

This commit is contained in:
SL 2023-09-01 18:23:36 +08:00
parent f73d03423d
commit 5f073e3b62
5 changed files with 14 additions and 4 deletions

View File

@ -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

View File

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

View File

@ -499,7 +499,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.5"
version: "1.0.6"
x25519:
dependency: transitive
description:

View File

@ -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) {

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