mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-01 16:32:08 +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