diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-11-30 21:15:16 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-11-30 21:15:16 +0100 |
commit | 126b71398479c39c915d2205ec316703a9d2dfbb (patch) | |
tree | 4619a6e43be5a9a82db789ea8a3d509143f5356c /src/main/java/de/pixart/messenger/generator | |
parent | faf18982c13bbc2f70d23bca13670d9b91617d76 (diff) |
set access model to open when publishing avatar
Diffstat (limited to 'src/main/java/de/pixart/messenger/generator')
-rw-r--r-- | src/main/java/de/pixart/messenger/generator/IqGenerator.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/generator/IqGenerator.java b/src/main/java/de/pixart/messenger/generator/IqGenerator.java index cb56d66a8..160496273 100644 --- a/src/main/java/de/pixart/messenger/generator/IqGenerator.java +++ b/src/main/java/de/pixart/messenger/generator/IqGenerator.java @@ -137,12 +137,12 @@ public class IqGenerator extends AbstractGenerator { return packet; } - public IqPacket publishAvatar(Avatar avatar) { + public IqPacket publishAvatar(Avatar avatar, Bundle options) { final Element item = new Element("item"); item.setAttribute("id", avatar.sha1sum); final Element data = item.addChild("data", "urn:xmpp:avatar:data"); data.setContent(avatar.image); - return publish("urn:xmpp:avatar:data", item); + return publish("urn:xmpp:avatar:data", item, options); } public IqPacket publishElement(final String namespace, final Element element, final Bundle options) { @@ -152,7 +152,7 @@ public class IqGenerator extends AbstractGenerator { return publish(namespace, item, options); } - public IqPacket publishAvatarMetadata(final Avatar avatar) { + public IqPacket publishAvatarMetadata(final Avatar avatar, final Bundle options) { final Element item = new Element("item"); item.setAttribute("id", avatar.sha1sum); final Element metadata = item @@ -163,7 +163,7 @@ public class IqGenerator extends AbstractGenerator { info.setAttribute("height", avatar.height); info.setAttribute("width", avatar.height); info.setAttribute("type", avatar.type); - return publish("urn:xmpp:avatar:metadata", item); + return publish("urn:xmpp:avatar:metadata", item, options); } public IqPacket retrievePepAvatar(final Avatar avatar) { |