changeThreadName method

Future<void> changeThreadName(
  1. String newName
)

Implementation

Future<void> changeThreadName(String newName) async {
  try {
    await ChatUIKit.instance.updateChatThreadName(
      chatThreadId: thread!.threadId,
      newName: newName,
    );
  } catch (e) {
    chatPrint('change thread name error: $e');
  }
}