Fix bug
This commit is contained in:
parent
9345c6465a
commit
514fb53eca
@ -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)
|
||||
|
@ -41,5 +41,5 @@ android {
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
implementation 'io.openim:client-sdk:2.0.3@aar'
|
||||
implementation 'io.openim:client-sdk:2.0.4@aar'
|
||||
}
|
Binary file not shown.
@ -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)));
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user