unblockAll method

Future<bool> unblockAll()

Implementation

Future<bool> unblockAll() async {
  final result = (await getAttributes().sendStanza(
    StanzaDetails(
      Stanza.iq(
        type: 'set',
        children: [
          XMLNode.xmlns(
            tag: 'unblock',
            xmlns: blockingXmlns,
          ),
        ],
      ),
    ),
  ))!;

  return result.attributes['type'] == 'result';
}