1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-10-31 17:25:58 +01:00

Use pepPubSubManager in PepManager.publish()

This commit is contained in:
Florian Schmaus 2018-08-15 20:16:33 +02:00
parent 4d4f92ba86
commit 528e170b99

View file

@ -160,9 +160,7 @@ public final class PepManager extends Manager {
*/ */
public void publish(Item item, String node) throws NotConnectedException, InterruptedException, public void publish(Item item, String node) throws NotConnectedException, InterruptedException,
NoResponseException, XMPPErrorException, NotAPubSubNodeException { NoResponseException, XMPPErrorException, NotAPubSubNodeException {
XMPPConnection connection = connection(); LeafNode pubSubNode = pepPubSubManager.getNode(node);
PubSubManager pubSubManager = PubSubManager.getInstance(connection, connection.getUser().asEntityBareJid());
LeafNode pubSubNode = pubSubManager.getNode(node);
pubSubNode.publish(item); pubSubNode.publish(item);
} }