修改bug

This commit is contained in:
cpdl 2025-03-03 16:05:31 +08:00
parent 9998f9b99c
commit bd76c29f15
2 changed files with 2 additions and 5 deletions

View File

@ -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"])
}

View File

@ -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";