mirror of
https://github.com/WuKongIM/WuKongIMFlutterSDK
synced 2025-05-30 07:27:25 +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
|
### 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
|
@ -9,7 +9,7 @@
|
|||||||
#### 安装
|
#### 安装
|
||||||
```
|
```
|
||||||
dependencies:
|
dependencies:
|
||||||
wukongimfluttersdk: ^1.0.5
|
wukongimfluttersdk: ^1.0.6
|
||||||
```
|
```
|
||||||
#### 引入
|
#### 引入
|
||||||
```dart
|
```dart
|
||||||
|
@ -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:
|
||||||
|
@ -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) {
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user