aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/generator
diff options
context:
space:
mode:
authorMichael <betheg@bitcloner.org>2014-09-20 15:49:25 +0200
committerMichael <betheg@bitcloner.org>2014-09-20 15:49:25 +0200
commita86a09ab5b81f39c4d56c37af65e630539e85ffe (patch)
tree621ce6fcb0086b967d5aa8ecf3de27bacb3dc967 /src/eu/siacs/conversations/generator
parent295bfb7f1de98649d8a7dd5f77745e50bfc25f56 (diff)
indicates received messages with a tick.
Diffstat (limited to 'src/eu/siacs/conversations/generator')
-rw-r--r--src/eu/siacs/conversations/generator/MessageGenerator.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/generator/MessageGenerator.java b/src/eu/siacs/conversations/generator/MessageGenerator.java
index 8c0d4e23..acfa3db7 100644
--- a/src/eu/siacs/conversations/generator/MessageGenerator.java
+++ b/src/eu/siacs/conversations/generator/MessageGenerator.java
@@ -27,6 +27,9 @@ public class MessageGenerator extends AbstractGenerator {
packet.setTo(message.getCounterpart());
packet.setType(MessagePacket.TYPE_CHAT);
packet.addChild("markable", "urn:xmpp:chat-markers:0");
+ if (this.mXmppConnectionService.indicateReceived()) {
+ packet.addChild("request", "urn:xmpp:receipts");
+ }
} else if (message.getType() == Message.TYPE_PRIVATE) {
packet.setTo(message.getCounterpart());
packet.setType(MessagePacket.TYPE_CHAT);