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
|
## 2.0.0
|
||||||
|
|
||||||
1.Refactor mobile sdk, server sdk (2022-2-21)
|
1.Refactor mobile sdk, server sdk (2022-2-21)
|
||||||
|
@ -41,5 +41,5 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
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
|
/// [userID]接收消息的用户id
|
||||||
/// [groupID]接收消息的组id
|
/// [groupID]接收消息的组id
|
||||||
|
/// [offlinePushInfo]离线消息显示内容
|
||||||
Future<Message> sendMessage({
|
Future<Message> sendMessage({
|
||||||
required Message message,
|
required Message message,
|
||||||
|
required OfflinePushInfo offlinePushInfo,
|
||||||
String? userID,
|
String? userID,
|
||||||
String? groupID,
|
String? groupID,
|
||||||
OfflinePushInfo? offlinePushInfo,
|
|
||||||
String? operationID,
|
String? operationID,
|
||||||
}) =>
|
}) =>
|
||||||
_channel
|
_channel
|
||||||
@ -45,16 +46,9 @@ class MessageManager {
|
|||||||
'sendMessage',
|
'sendMessage',
|
||||||
_buildParam({
|
_buildParam({
|
||||||
'message': message.toJson(),
|
'message': message.toJson(),
|
||||||
|
'offlinePushInfo': offlinePushInfo.toJson(),
|
||||||
'userID': userID ?? '',
|
'userID': userID ?? '',
|
||||||
'groupID': groupID ?? '',
|
'groupID': groupID ?? '',
|
||||||
'offlinePushInfo': offlinePushInfo?.toJson() ??
|
|
||||||
{
|
|
||||||
"title": "You have a new message",
|
|
||||||
"desc": "",
|
|
||||||
"ex": "",
|
|
||||||
"iOSPushSound": "+1",
|
|
||||||
"iOSBadgeCount": true,
|
|
||||||
},
|
|
||||||
'operationID': Utils.checkOperationID(operationID),
|
'operationID': Utils.checkOperationID(operationID),
|
||||||
}))
|
}))
|
||||||
.then((value) => Utils.toObj(value, (map) => Message.fromJson(map)));
|
.then((value) => Utils.toObj(value, (map) => Message.fromJson(map)));
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: flutter_openim_sdk
|
name: flutter_openim_sdk
|
||||||
description: An instant messaging plug-in that supports Android and IOS. And the server is also all open source.
|
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
|
homepage: https://www.rentsoft.cn
|
||||||
repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter
|
repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user