This commit is contained in:
hrxiang 2022-02-24 17:01:40 +08:00
parent 9345c6465a
commit 514fb53eca
5 changed files with 9 additions and 11 deletions

View File

@ -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)

View File

@ -41,5 +41,5 @@ android {
}
}
dependencies {
implementation 'io.openim:client-sdk:2.0.3@aar'
implementation 'io.openim:client-sdk:2.0.4@aar'
}

View File

@ -33,11 +33,12 @@ class MessageManager {
///
/// [userID]id
/// [groupID]id
/// [offlinePushInfo]线
Future<Message> 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)));

View File

@ -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