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 params = NIMSendCustomNotificationParams(
    notificationConfig: NIMNotificationConfig(
      unreadEnabled: false,
      offlineEnabled: false,
    ),
    pushConfig: NIMNotificationPushConfig(pushEnabled: false),
  );
  ChatMessageRepo.sendCustomNotification(conversationId, json, params);
}