diff --git a/CHANGELOG.md b/CHANGELOG.md index 370c805..22f4f22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 \ No newline at end of file + ### 1.4.5 + * fix: Update send & recv message No fromChannel information added + ### 1.4.6 + * fix: Update send message fromChannel information is Null \ No newline at end of file diff --git a/lib/manager/message_manager.dart b/lib/manager/message_manager.dart index 928d75a..eac571a 100644 --- a/lib/manager/message_manager.dart +++ b/lib/manager/message_manager.dart @@ -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; diff --git a/pubspec.yaml b/pubspec.yaml index 91ffd66..631c215 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: