pinConversation method

Future<void> pinConversation({
  1. required String conversationId,
  2. required bool isPinned,
})

Implementation

Future<void> pinConversation({
  required String conversationId,
  required bool isPinned,
}) {
  return checkResult(ChatSDKEvent.pinConversation, () async {
    await Client.getInstance.chatManager.pinConversation(
      conversationId: conversationId,
      isPinned: isPinned,
    );
    super.onConversationsUpdate();
  });
}