endTyping method

void endTyping()

Sends end typing event.

Implementation

void endTyping() {
  sbLog.i(StackTrace.current);

  final now = DateTime.now().millisecondsSinceEpoch;
  if (now - _lastEndTypingTimestamp >
      chat.chatContext.options.typingIndicatorThrottle) {
    final cmd = Command.buildEndTyping(channelUrl, now);
    chat.commandManager.sendCommand(cmd);
    _lastStartTypingTimestamp = 0;
    _lastEndTypingTimestamp = now;
  }
}