onTypingEnded method

  1. @override
void onTypingEnded(
  1. TypingIndicator typingIndicator
)
override

Implementation

@override
void onTypingEnded(TypingIndicator typingIndicator) {
  if (userObject != null &&
      typingIndicator.receiverType == ReceiverTypeConstants.user &&
      typingIndicator.sender.uid == userObject!.uid) {
    isTyping = false;
    typingUser = null;
    update();
  } else if (groupObject != null &&
      typingIndicator.receiverType == ReceiverTypeConstants.group &&
      typingIndicator.receiverId == groupObject!.guid) {
    isTyping = false;
    typingUser = typingIndicator.sender;
    update();
  }
}