update
This commit is contained in:
parent
8abc8e4399
commit
e2b546f400
@ -1,3 +1,9 @@
|
||||
## 2.0.9+3
|
||||
|
||||
1.Fix bug </br>
|
||||
2.New setGlobalRecvMessageOpt method</br>
|
||||
|
||||
|
||||
## 2.0.9+2
|
||||
|
||||
1.Fix bug </br>
|
||||
|
@ -41,5 +41,5 @@ android {
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
implementation 'io.openim:core-sdk:2.0.9.18@aar'
|
||||
implementation 'io.openim:core-sdk:2.0.9.20@aar'
|
||||
}
|
@ -154,4 +154,12 @@ public class ConversationManager extends BaseManager {
|
||||
public void getAtAllTag(MethodCall methodCall, MethodChannel.Result result) {
|
||||
CommonUtil.runMainThreadReturn(result, Open_im_sdk.getAtAllTag());
|
||||
}
|
||||
|
||||
public void setGlobalRecvMessageOpt(MethodCall methodCall, MethodChannel.Result result) {
|
||||
Open_im_sdk.setGlobalRecvMessageOpt(
|
||||
new OnBaseListener(result, methodCall),
|
||||
value(methodCall, "operationID"),
|
||||
int2long(methodCall, "status")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -261,6 +261,21 @@ class ConversationManager {
|
||||
Future<dynamic> getAtAllTag() =>
|
||||
_channel.invokeMethod('getAtAllTag', _buildParam({}));
|
||||
|
||||
/// Global Do Not Disturb
|
||||
/// [status] 0: Normal. 1: Do not receive messages. 2: Do not notify when messages are received.
|
||||
/// 全局免打扰
|
||||
/// [status] 0:正常;1:不接受消息;2:接受在线消息不接受离线消息;
|
||||
Future<dynamic> setGlobalRecvMessageOpt({
|
||||
required int status,
|
||||
String? operationID,
|
||||
}) =>
|
||||
_channel.invokeMethod(
|
||||
'setGlobalRecvMessageOpt',
|
||||
_buildParam({
|
||||
"status": status,
|
||||
"operationID": Utils.checkOperationID(operationID),
|
||||
}));
|
||||
|
||||
/// Custom sort for conversation list
|
||||
/// 会话列表自定义排序规则。
|
||||
List<ConversationInfo> simpleSort(List<ConversationInfo> list) => list
|
||||
|
@ -29,6 +29,9 @@ class UserInfo {
|
||||
|
||||
bool? isBlacklist;
|
||||
|
||||
/// 全局免打扰
|
||||
int? globalRecvMsgOpt;
|
||||
|
||||
UserInfo({
|
||||
this.publicInfo,
|
||||
this.friendInfo,
|
||||
@ -46,6 +49,7 @@ class UserInfo {
|
||||
this.ex,
|
||||
this.createTime,
|
||||
this.remark,
|
||||
this.globalRecvMsgOpt,
|
||||
});
|
||||
|
||||
// UserInfo.self(Map<String, dynamic> json) {
|
||||
@ -84,6 +88,7 @@ class UserInfo {
|
||||
remark = json['remark'] ?? _remark;
|
||||
ex = json['ex'] ?? _ex;
|
||||
createTime = json['createTime'];
|
||||
globalRecvMsgOpt = json['globalRecvMsgOpt'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
@ -104,6 +109,7 @@ class UserInfo {
|
||||
data['ex'] = this.ex;
|
||||
data['createTime'] = this.createTime;
|
||||
data['remark'] = this.remark;
|
||||
data['globalRecvMsgOpt'] = this.globalRecvMsgOpt;
|
||||
return data;
|
||||
}
|
||||
|
||||
|
@ -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.9+2
|
||||
version: 2.0.9+3
|
||||
homepage: https://www.rentsoft.cn
|
||||
repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user