aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-01 23:01:22 +0300
committerGravatar Vitaly Takmazov2016-12-01 23:01:22 +0300
commit8b29dc19a288cf50246af0a3834d45e07da51642 (patch)
treee5cd5f6e7611d002fd5809c3138dbe39f6602583 /juick-xmpp
parentbdd36eb9858d0dccd94827de55e36767095be048 (diff)
juick-core: fix replies serialization
Diffstat (limited to 'juick-xmpp')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionRouter.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionRouter.java b/juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionRouter.java
index d9763709..7bef76ab 100644
--- a/juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionRouter.java
+++ b/juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionRouter.java
@@ -228,11 +228,11 @@ public class ConnectionRouter extends Connection implements Runnable {
}
txt += jmsg.getText() + "\n\n";
txt += "#" + jmsg.getMid();
- if (jmsg.Replies > 0) {
- if (jmsg.Replies % 10 == 1 && jmsg.Replies % 100 != 11) {
- txt += " (" + jmsg.Replies + " reply)";
+ if (jmsg.getReplies() > 0) {
+ if (jmsg.getReplies() % 10 == 1 && jmsg.getReplies() % 100 != 11) {
+ txt += " (" + jmsg.getReplies() + " reply)";
} else {
- txt += " (" + jmsg.Replies + " replies)";
+ txt += " (" + jmsg.getReplies() + " replies)";
}
}
txt += " http://juick.com/" + jmsg.getMid();