retractStickerPack method

Future<Result<PubSubError, bool>> retractStickerPack(
  1. JID jid,
  2. String id
)

Removes the sticker pack with id id from the PubSub node of jid.

On success, returns the true. On failure, returns a PubSubError.

Implementation

Future<Result<PubSubError, bool>> retractStickerPack(
  JID jid,
  String id,
) async {
  final pm = getAttributes().getManagerById<PubSubManager>(pubsubManager)!;

  return pm.retract(
    jid,
    stickersXmlns,
    id,
  );
}