updateConversationPinnedState method

Future<Map> updateConversationPinnedState(
  1. bool isPinned,
  2. String conversationID,
  3. dynamic conversationType
)

Implementation

Future<Map<dynamic, dynamic>> updateConversationPinnedState(
    bool isPinned, String conversationID, dynamic conversationType) async {
  final result = await promiseToFuture(ZIM
          .getInstance()!
          .updateConversationPinnedState(
              isPinned, conversationID, conversationType))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  return jsObjectToMap(result);
}