Fix bug
This commit is contained in:
parent
eb3361c4b3
commit
025334d32f
@ -1,6 +1,9 @@
|
|||||||
## 2.3.4+5
|
## 2.3.4+5
|
||||||
|
|
||||||
- Fix bug
|
- Fix bug
|
||||||
|
- Add setOneConversationBurnDuration method for ConversationManager
|
||||||
|
- Add burnDuration field for ConversationInfo
|
||||||
|
- Add burnDuration field for AttachedInfoElem
|
||||||
|
|
||||||
## 2.3.4+4
|
## 2.3.4+4
|
||||||
|
|
||||||
|
@ -3,9 +3,6 @@ version '1.0'
|
|||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
|
||||||
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
|
|
||||||
}
|
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
@ -17,9 +14,7 @@ buildscript {
|
|||||||
|
|
||||||
rootProject.allprojects {
|
rootProject.allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven { url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/' }
|
||||||
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
|
|
||||||
}
|
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
@ -39,5 +34,5 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'io.openim:core-sdk:2.3.4-rc3@aar'
|
api 'io.openim:core-sdk:2.3.4-rc4@aar'
|
||||||
}
|
}
|
@ -162,4 +162,13 @@ public class ConversationManager extends BaseManager {
|
|||||||
int2long(methodCall, "status")
|
int2long(methodCall, "status")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setOneConversationBurnDuration(MethodCall methodCall, MethodChannel.Result result) {
|
||||||
|
Open_im_sdk.setOneConversationBurnDuration(
|
||||||
|
new OnBaseListener(result, methodCall),
|
||||||
|
value(methodCall, "operationID"),
|
||||||
|
value(methodCall, "conversationID"),
|
||||||
|
value(methodCall, "burnDuration")
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -262,6 +262,22 @@ class ConversationManager {
|
|||||||
"operationID": Utils.checkOperationID(operationID),
|
"operationID": Utils.checkOperationID(operationID),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
/// 设置阅后即焚时长
|
||||||
|
/// [conversationID] 会话id
|
||||||
|
/// [burnDuration] 时长s,默认30s
|
||||||
|
Future<dynamic> setOneConversationBurnDuration({
|
||||||
|
required String conversationID,
|
||||||
|
int burnDuration = 30,
|
||||||
|
String? operationID,
|
||||||
|
}) =>
|
||||||
|
_channel.invokeMethod(
|
||||||
|
'setOneConversationBurnDuration',
|
||||||
|
_buildParam({
|
||||||
|
"conversationID": conversationID,
|
||||||
|
"burnDuration": burnDuration,
|
||||||
|
"operationID": Utils.checkOperationID(operationID),
|
||||||
|
}));
|
||||||
|
|
||||||
/// 会话列表自定义排序规则。
|
/// 会话列表自定义排序规则。
|
||||||
List<ConversationInfo> simpleSort(List<ConversationInfo> list) => list
|
List<ConversationInfo> simpleSort(List<ConversationInfo> list) => list
|
||||||
..sort((a, b) {
|
..sort((a, b) {
|
||||||
|
@ -48,6 +48,9 @@ class ConversationInfo {
|
|||||||
/// 是否开启了私聊(阅后即焚)
|
/// 是否开启了私聊(阅后即焚)
|
||||||
bool? isPrivateChat;
|
bool? isPrivateChat;
|
||||||
|
|
||||||
|
/// 可阅读期限 s
|
||||||
|
int? burnDuration;
|
||||||
|
|
||||||
/// 附加内容
|
/// 附加内容
|
||||||
String? ext;
|
String? ext;
|
||||||
|
|
||||||
@ -68,6 +71,7 @@ class ConversationInfo {
|
|||||||
this.draftText,
|
this.draftText,
|
||||||
this.draftTextTime,
|
this.draftTextTime,
|
||||||
this.isPrivateChat,
|
this.isPrivateChat,
|
||||||
|
this.burnDuration,
|
||||||
this.isPinned,
|
this.isPinned,
|
||||||
this.isNotInGroup,
|
this.isNotInGroup,
|
||||||
});
|
});
|
||||||
@ -93,6 +97,7 @@ class ConversationInfo {
|
|||||||
draftTextTime = json['draftTextTime'];
|
draftTextTime = json['draftTextTime'];
|
||||||
isPinned = json['isPinned'];
|
isPinned = json['isPinned'];
|
||||||
isPrivateChat = json['isPrivateChat'];
|
isPrivateChat = json['isPrivateChat'];
|
||||||
|
burnDuration = json['burnDuration'];
|
||||||
isNotInGroup = json['isNotInGroup'];
|
isNotInGroup = json['isNotInGroup'];
|
||||||
groupAtType = json['groupAtType'];
|
groupAtType = json['groupAtType'];
|
||||||
}
|
}
|
||||||
@ -113,6 +118,7 @@ class ConversationInfo {
|
|||||||
data['draftTextTime'] = this.draftTextTime;
|
data['draftTextTime'] = this.draftTextTime;
|
||||||
data['isPinned'] = this.isPinned;
|
data['isPinned'] = this.isPinned;
|
||||||
data['isPrivateChat'] = this.isPrivateChat;
|
data['isPrivateChat'] = this.isPrivateChat;
|
||||||
|
data['burnDuration'] = this.burnDuration;
|
||||||
data['isNotInGroup'] = this.isNotInGroup;
|
data['isNotInGroup'] = this.isNotInGroup;
|
||||||
data['groupAtType'] = this.groupAtType;
|
data['groupAtType'] = this.groupAtType;
|
||||||
return data;
|
return data;
|
||||||
|
@ -790,6 +790,9 @@ class AttachedInfoElem {
|
|||||||
/// 已读时间
|
/// 已读时间
|
||||||
int? hasReadTime;
|
int? hasReadTime;
|
||||||
|
|
||||||
|
/// 私聊消息保留时长
|
||||||
|
int? burnDuration;
|
||||||
|
|
||||||
/// 离线不发送推送
|
/// 离线不发送推送
|
||||||
bool? notSenderNotificationPush;
|
bool? notSenderNotificationPush;
|
||||||
|
|
||||||
@ -797,6 +800,7 @@ class AttachedInfoElem {
|
|||||||
this.groupHasReadInfo,
|
this.groupHasReadInfo,
|
||||||
this.isPrivateChat,
|
this.isPrivateChat,
|
||||||
this.hasReadTime,
|
this.hasReadTime,
|
||||||
|
this.burnDuration,
|
||||||
this.notSenderNotificationPush,
|
this.notSenderNotificationPush,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -806,6 +810,7 @@ class AttachedInfoElem {
|
|||||||
: GroupHasReadInfo.fromJson(json['groupHasReadInfo']);
|
: GroupHasReadInfo.fromJson(json['groupHasReadInfo']);
|
||||||
isPrivateChat = json['isPrivateChat'];
|
isPrivateChat = json['isPrivateChat'];
|
||||||
hasReadTime = json['hasReadTime'];
|
hasReadTime = json['hasReadTime'];
|
||||||
|
burnDuration = json['burnDuration'];
|
||||||
notSenderNotificationPush = json['notSenderNotificationPush'];
|
notSenderNotificationPush = json['notSenderNotificationPush'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -814,6 +819,7 @@ class AttachedInfoElem {
|
|||||||
data['groupHasReadInfo'] = this.groupHasReadInfo?.toJson();
|
data['groupHasReadInfo'] = this.groupHasReadInfo?.toJson();
|
||||||
data['isPrivateChat'] = this.isPrivateChat;
|
data['isPrivateChat'] = this.isPrivateChat;
|
||||||
data['hasReadTime'] = this.hasReadTime;
|
data['hasReadTime'] = this.hasReadTime;
|
||||||
|
data['burnDuration'] = this.burnDuration;
|
||||||
data['notSenderNotificationPush'] = this.notSenderNotificationPush;
|
data['notSenderNotificationPush'] = this.notSenderNotificationPush;
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user