diff options
author | Vitaly Takmazov | 2017-02-07 17:02:27 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-02-07 17:02:27 +0300 |
commit | 643466552552b1da59038b1771ee15f227422d85 (patch) | |
tree | f5542391537d6510f0b5a031757ed0c8473508a8 /juick-xmpp/src/main/java | |
parent | 428c748b25b156a973f508e82a1c53ab6b74bc2b (diff) |
juick-xmpp: fix subscriptions sending
Diffstat (limited to 'juick-xmpp/src/main/java')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java | 7 |
1 files changed, 3 insertions, 4 deletions
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)); |