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:
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,
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue