sendInputNotification method

void sendInputNotification(
  1. bool isTyping
)

Implementation

void sendInputNotification(bool isTyping) {
  Map<String, dynamic> content = {typeState: isTyping ? 1 : 0};
  var json = jsonEncode(content);
  var notification = CustomNotification(
      sessionId: sessionId,
      sessionType: NIMSessionType.p2p,
      content: json,
      config: CustomNotificationConfig(
          enablePush: false, enableUnreadCount: false));
  ChatMessageRepo.sendCustomNotification(notification);
}