From a110dea4804dd1011899a909612ba92e2807718a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 10 Dec 2016 12:37:18 +0300 Subject: juick-api: fix telegram urls --- juick-ws/src/main/java/com/juick/ws/XMPPConnection.java | 5 +++-- 1 file 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); } -- cgit v1.2.3