aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-10 12:37:18 +0300
committerGravatar Vitaly Takmazov2016-12-10 12:38:06 +0300
commita110dea4804dd1011899a909612ba92e2807718a (patch)
treee8a78bb003cf422406486f1e5911a6a7452590c0 /juick-ws/src/main/java/com/juick
parent8e873bad558342b723e215923e585e58eb7dd266 (diff)
juick-api: fix telegram urls
Diffstat (limited to 'juick-ws/src/main/java/com/juick')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/XMPPConnection.java5
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);
}