aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/generator
diff options
context:
space:
mode:
authorBrianBlade <n.gelbertz@gmail.com>2015-03-16 23:23:51 +0100
committerBrianBlade <n.gelbertz@gmail.com>2015-03-18 21:49:41 +0100
commit1c600fefcf9cba751bc8bc0f151cc03e28d9c4b9 (patch)
tree37dc273bce1f8f5bf88af8ee6054f253d0c25da6 /src/main/java/eu/siacs/conversations/generator
parent1a5321e41f8ff18356d27a54078a6d742826473f (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.java3
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);