From 643466552552b1da59038b1771ee15f227422d85 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 7 Feb 2017 17:02:27 +0300 Subject: juick-xmpp: fix subscriptions sending --- juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'juick-xmpp/src/main') diff --git a/juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java b/juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java index 48c67b25..f76595a1 100644 --- a/juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java +++ b/juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java @@ -188,9 +188,9 @@ public class XMPPConnection implements AutoCloseable { } } } - - String txt = "@" + jmsg.getUser().getName() + ":" + jmsg.getTagsString() + "\n"; - String attachment = jmsg.getAttachmentURL(); + com.juick.Message fullMsg = xmpp.messagesService.getMessage(jmsg.getMid()); + String txt = "@" + jmsg.getUser().getName() + ":" + fullMsg.getTagsString() + "\n"; + String attachment = fullMsg.getAttachmentURL(); if (attachment != null) { txt += attachment + "\n"; } @@ -214,7 +214,6 @@ public class XMPPConnection implements AutoCloseable { logger.warn("uri exception", e); } } - for (String jid : jids) { msg.setTo(Jid.of(jid)); route(msg.getTo().getDomain(), ClientMessage.from(msg)); -- cgit v1.2.3