diff --git a/CHANGELOG.md b/CHANGELOG.md index bb2b7b2..c4ef551 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.1 + +1.Fix multi-terminal synchronization bug fix for retracted messages + ## 2.0.0 1.Refactor mobile sdk, server sdk (2022-2-21) diff --git a/android/build.gradle b/android/build.gradle index 37c0f2b..2888d5b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -41,5 +41,5 @@ android { } } dependencies { - implementation 'io.openim:client-sdk:2.0.3@aar' + implementation 'io.openim:client-sdk:2.0.4@aar' } \ No newline at end of file diff --git a/ios/Framework/OpenIMCore.framework/OpenIMCore b/ios/Framework/OpenIMCore.framework/OpenIMCore index a382265..1ae1a26 100644 Binary files a/ios/Framework/OpenIMCore.framework/OpenIMCore and b/ios/Framework/OpenIMCore.framework/OpenIMCore differ diff --git a/lib/src/manager/im_message_manager.dart b/lib/src/manager/im_message_manager.dart index 3c10daa..42539ef 100644 --- a/lib/src/manager/im_message_manager.dart +++ b/lib/src/manager/im_message_manager.dart @@ -33,11 +33,12 @@ class MessageManager { /// 发送消息 /// [userID]接收消息的用户id /// [groupID]接收消息的组id + /// [offlinePushInfo]离线消息显示内容 Future sendMessage({ required Message message, + required OfflinePushInfo offlinePushInfo, String? userID, String? groupID, - OfflinePushInfo? offlinePushInfo, String? operationID, }) => _channel @@ -45,16 +46,9 @@ class MessageManager { 'sendMessage', _buildParam({ 'message': message.toJson(), + 'offlinePushInfo': offlinePushInfo.toJson(), 'userID': userID ?? '', 'groupID': groupID ?? '', - 'offlinePushInfo': offlinePushInfo?.toJson() ?? - { - "title": "You have a new message", - "desc": "", - "ex": "", - "iOSPushSound": "+1", - "iOSBadgeCount": true, - }, 'operationID': Utils.checkOperationID(operationID), })) .then((value) => Utils.toObj(value, (map) => Message.fromJson(map))); diff --git a/pubspec.yaml b/pubspec.yaml index 33f8294..7517abe 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_openim_sdk description: An instant messaging plug-in that supports Android and IOS. And the server is also all open source. -version: 2.0.0 +version: 2.0.1 homepage: https://www.rentsoft.cn repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter