fix: Update send message fromChannel information is Null

This commit is contained in:
SL 2024-06-25 15:06:29 +08:00
parent b0c06930fb
commit 45e66eef06
3 changed files with 8 additions and 6 deletions

View File

@ -46,7 +46,7 @@
* Modifying the issue of reconnecting disconnected objects without destroying them
### 1.2.3
* Optimize message queries
### 1.2.4
### 1.2.4
* Optimize connection
### 1.2.5
* Modifying the issue of disconnected sockets not being destroyed
@ -88,5 +88,7 @@
* fix: Modifying messages sent by oneself will increase the issue of unread quantity
### 1.4.4
* fix: Update parsing channel member extension data
### 1.4.5
* fix: Update send & recv message No fromChannel information added
### 1.4.5
* fix: Update send & recv message No fromChannel information added
### 1.4.6
* fix: Update send message fromChannel information is Null

View File

@ -584,8 +584,8 @@ class WKMessageManager {
wkMsg.setChannelInfo(channel);
WKChannel? from = await WKIM.shared.channelManager
.getChannel(wkMsg.fromUID, WKChannelType.personal);
if (from == null) {
wkMsg.setFrom(from!);
if (from != null) {
wkMsg.setFrom(from);
}
int row = await saveMsg(wkMsg);
wkMsg.clientSeq = row;

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