insertCreateMessage method

Future<void> insertCreateMessage()

Implementation

Future<void> insertCreateMessage() async {
  if (thread != null) {
    List<Message> messages = ChatUIKitTools.tmpCreateThreadMessages(
      thread: thread!,
    );
    msgModelList.insertAll(
        0, messages.map((e) => MessageModel(message: e)).toList());

    refresh();
  }
}