deleteMessages method

Future<V2TimCallback> deleteMessages(
  1. dynamic params
)

Implementation

Future<V2TimCallback> deleteMessages(params) async {
  try {
    final res = await wrappedPromiseToFuture(timeweb!.deleteMessage(parseWebMessageInstanceList(params['webMessageInstanceList'])));
    if (res.code == 0) {
      return CommonUtils.returnSuccessForCb(jsToMap(res.data));
    } else {
      return CommonUtils.returnError('delete msg failed');
    }
  } catch (error) {
    log(error);
    return CommonUtils.returnError(error);
  }
}