onTypingMessagesReceived method

void onTypingMessagesReceived(
  1. List<Message> messages
)

Implementation

void onTypingMessagesReceived(List<Message> messages) {
  List<String> fromUsers = [];
  for (var msg in messages) {
    if (fromUsers.contains(msg.from)) continue;
    fromUsers.add(msg.from!);
  }
  for (var observer in List<ChatUIKitObserverBase>.of(observers)) {
    if (observer is ChatObserver) {
      observer.onTyping(fromUsers);
    }
  }
}