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 {
  try {
    Map req = {"msgId": msgId};
    Map result = await platform_interface.Client.instance.messageManager
        .callNativeMethod(ChatMethodKeys.groupAckCount, req);
    ChatError.hasErrorFromResult(result);
    if (result.containsKey(ChatMethodKeys.groupAckCount)) {
      return result[ChatMethodKeys.groupAckCount];
    } else {
      return 0;
    }
  } catch (e) {
    rethrow;
  }
}