修改bug
This commit is contained in:
parent
9998f9b99c
commit
bd76c29f15
@ -261,7 +261,7 @@ public class MessageManager: BaseServiceManager {
|
||||
}
|
||||
|
||||
func fetchSurroundingMessages(methodCall: FlutterMethodCall, result: @escaping FlutterResult){
|
||||
callBack(result, Open_im_sdkFetchSurroundingMessages(methodCall[string: "operationID"], methodCall[jsonString: "message"], methodCall[int: "before"], methodCall[int: "after"]))
|
||||
Open_im_sdkFetchSurroundingMessages(BaseCallback(result: result),methodCall[string: "operationID"], methodCall[jsonString: "message"], methodCall[int: "before"], methodCall[int: "after"])
|
||||
}
|
||||
|
||||
|
||||
|
@ -836,10 +836,7 @@ class MessageManager {
|
||||
'after': after ?? 0,
|
||||
'operationID': Utils.checkOperationID(operationID),
|
||||
}))
|
||||
.then((value) {
|
||||
final result = Utils.toListMap(value);
|
||||
return List<Message>.from(result);
|
||||
});
|
||||
.then((value) => Utils.toList(value, (map) => Message.fromJson(map)));
|
||||
|
||||
static Map _buildParam(Map<String, dynamic> param) {
|
||||
param["ManagerName"] = "messageManager";
|
||||
|
Loading…
x
Reference in New Issue
Block a user