Compare commits

..

No commits in common. "55d2ef9c25d383806bc780597a96d3c2887a4aa1" and "2a3449d0f2f222cdb615239d56af7a1dd8840189" have entirely different histories.

2 changed files with 8 additions and 9 deletions

View File

@ -252,11 +252,10 @@ class StickersManager extends XmppManagerBase {
);
}
/// Publishes the StickerPack [pack] to the PubSub node of [jid]. If specified, then
/// [accessModel] will be used as the PubSub node's access model.
/// Publishes the StickerPack [pack] to the PubSub node of [jid].
///
/// On success, returns true. On failure, returns a PubSubError.
Future<Result<PubSubError, bool>> publishStickerPack(JID jid, StickerPack pack, { String? accessModel }) async {
Future<Result<PubSubError, bool>> publishStickerPack(JID jid, StickerPack pack) async {
assert(pack.id != '', 'The sticker pack must have an id');
final pm = getAttributes().getManagerById<PubSubManager>(pubsubManager)!;
@ -265,9 +264,8 @@ class StickersManager extends XmppManagerBase {
stickersXmlns,
pack.toXML(),
id: pack.id,
options: PubSubPublishOptions(
options: const PubSubPublishOptions(
maxItems: 'max',
accessModel: accessModel,
),
);
}

View File

@ -6,11 +6,12 @@ import 'package:moxxmpp/src/namespaces.dart';
import 'package:moxxmpp/src/stanza.dart';
class ReplyData {
const ReplyData({
required this.to,
required this.id,
this.start,
this.end,
required this.to,
required this.id,
this.start,
this.end,
});
final String to;
final String id;