Fix bug
This commit is contained in:
parent
ba3767da42
commit
025487fbf3
@ -3,6 +3,9 @@
|
||||
- Add onRecvMessageExtensionsAdded method for OnAdvancedMsgListener
|
||||
- Add addMessageReactionExtensions method for MessageManager
|
||||
- Add getMessageListSomeReactionExtensions method for MessageManager
|
||||
- Add isExternal field for MessageManager
|
||||
- Add isReact method field MessageManager
|
||||
- Add params isExternalExtensions for initSDK
|
||||
|
||||
## 2.3.5+1
|
||||
|
||||
|
@ -382,6 +382,7 @@ class IMManager {
|
||||
String? encryptionKey,
|
||||
bool enabledEncryption = false,
|
||||
bool enabledCompression = false,
|
||||
bool isExternalExtensions = false,
|
||||
String? operationID,
|
||||
}) {
|
||||
this._connectListener = listener;
|
||||
@ -399,6 +400,7 @@ class IMManager {
|
||||
"encryption_key": encryptionKey,
|
||||
"is_need_encryption": enabledEncryption,
|
||||
"is_compression ": enabledCompression,
|
||||
"is_external_extensions": isExternalExtensions,
|
||||
"operationID": Utils.checkOperationID(operationID),
|
||||
},
|
||||
));
|
||||
|
@ -105,6 +105,10 @@ class Message {
|
||||
/// 附加信息
|
||||
AttachedInfoElem? attachedInfoElem;
|
||||
|
||||
bool? isReact;
|
||||
|
||||
bool? isExternal;
|
||||
|
||||
Message({
|
||||
this.clientMsgID,
|
||||
this.serverMsgID,
|
||||
@ -140,6 +144,8 @@ class Message {
|
||||
this.notificationElem,
|
||||
this.faceElem,
|
||||
this.attachedInfoElem,
|
||||
this.isExternal,
|
||||
this.isReact,
|
||||
});
|
||||
|
||||
Message.fromJson(Map<String, dynamic> json) {
|
||||
@ -200,6 +206,8 @@ class Message {
|
||||
? AttachedInfoElem.fromJson(json['attachedInfoElem'])
|
||||
: null;
|
||||
hasReadTime = json['hasReadTime'] ?? attachedInfoElem?.hasReadTime;
|
||||
isExternal = json['isExternal'];
|
||||
isReact = json['isReact'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
@ -238,6 +246,8 @@ class Message {
|
||||
data['notificationElem'] = this.notificationElem?.toJson();
|
||||
data['faceElem'] = this.faceElem?.toJson();
|
||||
data['attachedInfoElem'] = this.attachedInfoElem?.toJson();
|
||||
data['isExternal'] = this.isExternal;
|
||||
data['isReact'] = this.isReact;
|
||||
return data;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user