diff options
author | Michael <betheg@bitcloner.org> | 2014-09-20 15:49:25 +0200 |
---|---|---|
committer | Michael <betheg@bitcloner.org> | 2014-09-20 15:49:25 +0200 |
commit | a86a09ab5b81f39c4d56c37af65e630539e85ffe (patch) | |
tree | 621ce6fcb0086b967d5aa8ecf3de27bacb3dc967 /src/eu/siacs/conversations/parser | |
parent | 295bfb7f1de98649d8a7dd5f77745e50bfc25f56 (diff) |
indicates received messages with a tick.
Diffstat (limited to 'src/eu/siacs/conversations/parser')
-rw-r--r-- | src/eu/siacs/conversations/parser/MessageParser.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/parser/MessageParser.java b/src/eu/siacs/conversations/parser/MessageParser.java index b9fe3c15..d2274000 100644 --- a/src/eu/siacs/conversations/parser/MessageParser.java +++ b/src/eu/siacs/conversations/parser/MessageParser.java @@ -278,6 +278,13 @@ public class MessageParser extends AbstractParser implements updateLastseen(packet, account, false); mXmppConnectionService.markMessage(account, fromParts[0], id, Message.STATUS_SEND_RECEIVED); + } else if (packet.hasChild("received", "urn:xmpp:receipts")) { + String id = packet.findChild("received", "urn:xmpp:receipts") + .getAttribute("id"); + String[] fromParts = packet.getAttribute("from").split("/"); + updateLastseen(packet, account, false); + mXmppConnectionService.markMessage(account, fromParts[0], id, + Message.STATUS_SEND_RECEIVED); } else if (packet.hasChild("x", "http://jabber.org/protocol/muc#user")) { Element x = packet.findChild("x", "http://jabber.org/protocol/muc#user"); |