rejectSubscriptionRequest method

Future<void> rejectSubscriptionRequest(
  1. JID to
)

Send a subscription request rejection to to.

Implementation

Future<void> rejectSubscriptionRequest(JID to) async {
  await getAttributes().sendStanza(
    StanzaDetails(
      Stanza.presence(
        type: 'unsubscribed',
        to: to.toString(),
      ),
      awaitable: false,
    ),
  );
}