1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +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,
NoResponseException, XMPPErrorException, NotAPubSubNodeException {
XMPPConnection connection = connection();
PubSubManager pubSubManager = PubSubManager.getInstance(connection, connection.getUser().asEntityBareJid());
LeafNode pubSubNode = pubSubManager.getNode(node);
LeafNode pubSubNode = pepPubSubManager.getNode(node);
pubSubNode.publish(item);
}