mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 16:22:06 +01:00
Use pepPubSubManager in PepManager.publish()
This commit is contained in:
parent
4d4f92ba86
commit
528e170b99
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue