onChatThreadUpdate method

  1. @override
void onChatThreadUpdate(
  1. ChatThreadEvent event
)
override

Implementation

@override
void onChatThreadUpdate(ChatThreadEvent event) {
  if (thread != null && thread?.threadId == event.chatThread?.threadId) {
    model = model?.copyWith(thread: thread);
    thread = event.chatThread;
    updatePermission();
    refresh();
  }
}