diff options
Diffstat (limited to 'juick-xmpp/src/main')
-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 48c67b259..f76595a15 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)); |