groupAckCount method

Future<int> groupAckCount()

Gets the number of members that have read the group message.

Return group ack count

Throws A description of the exception. See ChatError

Implementation

Future<int> groupAckCount() async {
  Map req = {"msgId": msgId};
  Map result =
      await _emMessageChannel.invokeMethod(ChatMethodKeys.groupAckCount, req);
  try {
    ChatError.hasErrorFromResult(result);
    if (result.containsKey(ChatMethodKeys.groupAckCount)) {
      return result[ChatMethodKeys.groupAckCount];
    } else {
      return 0;
    }
  } on ChatError catch (e) {
    throw e;
  }
}