diff options
author | BrianBlade <n.gelbertz@gmail.com> | 2015-03-16 23:23:51 +0100 |
---|---|---|
committer | BrianBlade <n.gelbertz@gmail.com> | 2015-03-18 21:49:41 +0100 |
commit | 1c600fefcf9cba751bc8bc0f151cc03e28d9c4b9 (patch) | |
tree | 37dc273bce1f8f5bf88af8ee6054f253d0c25da6 /src/main/java/eu/siacs/conversations/generator | |
parent | 1a5321e41f8ff18356d27a54078a6d742826473f (diff) |
# add delivery receipts for private muc msgs
# enable update last-seen for muc-msgs
Diffstat (limited to 'src/main/java/eu/siacs/conversations/generator')
-rw-r--r-- | src/main/java/eu/siacs/conversations/generator/MessageGenerator.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/generator/MessageGenerator.java b/src/main/java/eu/siacs/conversations/generator/MessageGenerator.java index e274d2bc..7f2f10a1 100644 --- a/src/main/java/eu/siacs/conversations/generator/MessageGenerator.java +++ b/src/main/java/eu/siacs/conversations/generator/MessageGenerator.java @@ -35,6 +35,9 @@ public class MessageGenerator extends AbstractGenerator { } else if (message.getType() == Message.TYPE_PRIVATE) { packet.setTo(message.getCounterpart()); packet.setType(MessagePacket.TYPE_CHAT); + if (this.mXmppConnectionService.indicateReceived()) { + packet.addChild("request", "urn:xmpp:receipts"); + } } else { packet.setTo(message.getCounterpart().toBareJid()); packet.setType(MessagePacket.TYPE_GROUPCHAT); |