pinConversation method

  1. @override
Future<V2TimCallback> pinConversation({
  1. required String conversationID,
  2. required bool isPinned,
})
override

Implementation

@override
Future<V2TimCallback> pinConversation({
  required String conversationID,
  required bool isPinned,
}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getConversationManager()
      .pinConversation(conversationID: conversationID, isPinned: isPinned);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}