pinConversation method

Future pinConversation(
  1. dynamic params
)

Implementation

Future<dynamic> pinConversation(params) async {
  try {
    final formatedParams = PinConversation.formateParams(params);
    final res = await promiseToFuture(timeweb!.pinConversation(formatedParams));
    return CommonUtils.returnSuccessForCb(jsToMap(res)['conversationID']);
  } catch (err) {
    return CommonUtils.returnError(err);
  }
}