Compare commits
No commits in common. "55d2ef9c25d383806bc780597a96d3c2887a4aa1" and "2a3449d0f2f222cdb615239d56af7a1dd8840189" have entirely different histories.
55d2ef9c25
...
2a3449d0f2
@ -252,11 +252,10 @@ class StickersManager extends XmppManagerBase {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Publishes the StickerPack [pack] to the PubSub node of [jid]. If specified, then
|
/// Publishes the StickerPack [pack] to the PubSub node of [jid].
|
||||||
/// [accessModel] will be used as the PubSub node's access model.
|
|
||||||
///
|
///
|
||||||
/// On success, returns true. On failure, returns a PubSubError.
|
/// 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');
|
assert(pack.id != '', 'The sticker pack must have an id');
|
||||||
final pm = getAttributes().getManagerById<PubSubManager>(pubsubManager)!;
|
final pm = getAttributes().getManagerById<PubSubManager>(pubsubManager)!;
|
||||||
|
|
||||||
@ -265,9 +264,8 @@ class StickersManager extends XmppManagerBase {
|
|||||||
stickersXmlns,
|
stickersXmlns,
|
||||||
pack.toXML(),
|
pack.toXML(),
|
||||||
id: pack.id,
|
id: pack.id,
|
||||||
options: PubSubPublishOptions(
|
options: const PubSubPublishOptions(
|
||||||
maxItems: 'max',
|
maxItems: 'max',
|
||||||
accessModel: accessModel,
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import 'package:moxxmpp/src/namespaces.dart';
|
|||||||
import 'package:moxxmpp/src/stanza.dart';
|
import 'package:moxxmpp/src/stanza.dart';
|
||||||
|
|
||||||
class ReplyData {
|
class ReplyData {
|
||||||
|
|
||||||
const ReplyData({
|
const ReplyData({
|
||||||
required this.to,
|
required this.to,
|
||||||
required this.id,
|
required this.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user