sendMessageReadAck method

void sendMessageReadAck(
  1. Message message
)

Implementation

void sendMessageReadAck(Message message) {
  if (message.chatType == ChatType.Chat &&
      message.direction == MessageDirection.RECEIVE &&
      message.hasReadAck == false) {
    ChatUIKit.instance.sendMessageReadAck(message: message).then((value) {
      message.hasReadAck = true;
    }).catchError((error) {});
  }
}