leaveChatThread method

Future<void> leaveChatThread()

Implementation

Future<void> leaveChatThread() async {
  try {
    await ChatUIKit.instance.leaveChatThread(
      chatThreadId: thread?.threadId ?? model?.thread?.threadId ?? '',
    );
  } catch (e) {
    chatPrint('leave thread error: $e');
  }
}