diff options
author | Vitaly Takmazov | 2016-12-10 12:37:18 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-10 12:38:06 +0300 |
commit | a110dea4804dd1011899a909612ba92e2807718a (patch) | |
tree | e8a78bb003cf422406486f1e5911a6a7452590c0 /juick-ws | |
parent | 8e873bad558342b723e215923e585e58eb7dd266 (diff) |
juick-api: fix telegram urls
Diffstat (limited to 'juick-ws')
-rw-r--r-- | juick-ws/src/main/java/com/juick/ws/XMPPConnection.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java index f535d123..cd79ab08 100644 --- a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java +++ b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java @@ -76,9 +76,10 @@ public class XMPPConnection implements AutoCloseable { onJuickPM(uid_to, jmsg); } } else if (jmsg.getRid() == 0) { - onJuickMessagePost(jmsg); + // to get full message with attachment, etc. + onJuickMessagePost(messagesService.getMessage(jmsg.getMid())); } else { - // to get quote + // to get quote and attachment com.juick.Message reply = messagesService.getReply(jmsg.getMid(), jmsg.getRid()); onJuickMessageReply(reply); } |