diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-09-20 19:55:53 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-09-20 19:55:53 +0200 |
commit | d806923d571c2ad8f12446df32e251195cb13db8 (patch) | |
tree | fd0eb102ce059067d6531fcdde1d2fa4527cdbcc /src/eu/siacs/conversations/generator/MessageGenerator.java | |
parent | 37aacbeb74919524138e5ab0d25f656f9a9f1b7d (diff) | |
parent | a86a09ab5b81f39c4d56c37af65e630539e85ffe (diff) |
Merge pull request #460 from betheg/receipts
indicates received messages with a tick.
Diffstat (limited to 'src/eu/siacs/conversations/generator/MessageGenerator.java')
-rw-r--r-- | src/eu/siacs/conversations/generator/MessageGenerator.java | 3 |
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 b6bb0bd8..d4cab3ed 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); |