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 ### 1.0.4
* update manager method of obtaining * update manager method of obtaining
### 1.0.5 ### 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: dependencies:
wukongimfluttersdk: ^1.0.5 wukongimfluttersdk: ^1.0.6
``` ```
#### 引入 #### 引入
```dart ```dart

View File

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

View File

@ -10,6 +10,7 @@ import 'package:wukongimfluttersdk/model/wk_media_message_content.dart';
import 'package:wukongimfluttersdk/type/const.dart'; import 'package:wukongimfluttersdk/type/const.dart';
import '../entity/channel.dart'; import '../entity/channel.dart';
import '../entity/conversation.dart';
import '../model/wk_message_content.dart'; import '../model/wk_message_content.dart';
import '../model/wk_unknown_content.dart'; import '../model/wk_unknown_content.dart';
import '../wkim.dart'; import '../wkim.dart';
@ -336,6 +337,13 @@ class WKMessageManager {
int row = await saveMsg(wkMsg); int row = await saveMsg(wkMsg);
wkMsg.clientSeq = row; wkMsg.clientSeq = row;
WKIM.shared.messageManager.setOnMsgInserted(wkMsg); 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 (wkMsg.messageContent is WKMediaMessageContent) {
// //
if (_uploadAttachmentBack != null) { 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 # 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.0.5 version: 1.0.6
homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK
environment: environment: