aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/generator/MessageGenerator.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-03-19 18:47:33 +0100
committerDaniel Gultsch <daniel@gultsch.de>2015-03-19 18:47:33 +0100
commit382bcc4cb54e30023a04411754fa5c7f3a559e8a (patch)
treef2a053ca33700f8641abe826335cc5c0513c373e /src/main/java/eu/siacs/conversations/generator/MessageGenerator.java
parenta13c59fa1b3a05b72b0c98147d251d2003b099a8 (diff)
parent1c600fefcf9cba751bc8bc0f151cc03e28d9c4b9 (diff)
Merge pull request #1042 from BrianBlade/FIXES_muc-dlrs_muc-lastseen
add delivery receipts for private muc msgs & enable update last-seen for muc-msgs
Diffstat (limited to 'src/main/java/eu/siacs/conversations/generator/MessageGenerator.java')
-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);