Fix bug
This commit is contained in:
parent
b8ee9276a2
commit
d758f3fca1
@ -1,3 +1,7 @@
|
|||||||
|
## 2.3.4+3
|
||||||
|
|
||||||
|
- Fix bug
|
||||||
|
|
||||||
## 2.3.4+2
|
## 2.3.4+2
|
||||||
|
|
||||||
- Add streamChangedEvent listener for OnSignalingListener
|
- Add streamChangedEvent listener for OnSignalingListener
|
||||||
|
@ -10,4 +10,6 @@ class IMPlatform {
|
|||||||
static const web = 5;
|
static const web = 5;
|
||||||
static const mini_web = 6;
|
static const mini_web = 6;
|
||||||
static const linux = 7;
|
static const linux = 7;
|
||||||
|
static const android_pad = 8;
|
||||||
|
static const ipad = 9;
|
||||||
}
|
}
|
||||||
|
@ -742,11 +742,11 @@ class MessageManager {
|
|||||||
.invokeMethod(
|
.invokeMethod(
|
||||||
'findMessageList',
|
'findMessageList',
|
||||||
_buildParam({
|
_buildParam({
|
||||||
'searchParams': searchParams.map((e) => e.toJson()),
|
'searchParams': searchParams.map((e) => e.toJson()).toList(),
|
||||||
'operationID': Utils.checkOperationID(operationID),
|
'operationID': Utils.checkOperationID(operationID),
|
||||||
}))
|
}))
|
||||||
.then((value) =>
|
.then((value) =>
|
||||||
Utils.toObj(value, (map) => SearchResult.fromJson(value)));
|
Utils.toObj(value, (map) => SearchResult.fromJson(map)));
|
||||||
|
|
||||||
/// 富文本消息
|
/// 富文本消息
|
||||||
/// [text] 输入内容
|
/// [text] 输入内容
|
||||||
|
@ -7,6 +7,8 @@ class SearchResult {
|
|||||||
/// 搜索到的具体内容
|
/// 搜索到的具体内容
|
||||||
List<SearchResultItems>? searchResultItems;
|
List<SearchResultItems>? searchResultItems;
|
||||||
|
|
||||||
|
List<SearchResultItems>? findResultItems;
|
||||||
|
|
||||||
SearchResult({this.totalCount, this.searchResultItems});
|
SearchResult({this.totalCount, this.searchResultItems});
|
||||||
|
|
||||||
SearchResult.fromJson(Map<String, dynamic> json) {
|
SearchResult.fromJson(Map<String, dynamic> json) {
|
||||||
@ -17,6 +19,12 @@ class SearchResult {
|
|||||||
searchResultItems!.add(SearchResultItems.fromJson(v));
|
searchResultItems!.add(SearchResultItems.fromJson(v));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (json['findResultItems'] != null) {
|
||||||
|
findResultItems = <SearchResultItems>[];
|
||||||
|
json['findResultItems'].forEach((v) {
|
||||||
|
findResultItems!.add(SearchResultItems.fromJson(v));
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
@ -26,6 +34,10 @@ class SearchResult {
|
|||||||
data['searchResultItems'] =
|
data['searchResultItems'] =
|
||||||
this.searchResultItems!.map((v) => v.toJson()).toList();
|
this.searchResultItems!.map((v) => v.toJson()).toList();
|
||||||
}
|
}
|
||||||
|
if (this.findResultItems != null) {
|
||||||
|
data['findResultItems'] =
|
||||||
|
this.findResultItems!.map((v) => v.toJson()).toList();
|
||||||
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -98,7 +110,7 @@ class SearchParams {
|
|||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final data = Map<String, dynamic>();
|
final data = Map<String, dynamic>();
|
||||||
data['conversationID'] = this.conversationID;
|
data['conversationID'] = this.conversationID;
|
||||||
data['messageCount'] = this.clientMsgIDList;
|
data['clientMsgIDList'] = this.clientMsgIDList;
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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.3.4+2
|
version: 2.3.4+3
|
||||||
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