Commit bbb36bd8 authored by Grigory Fedorov's avatar Grigory Fedorov

RoomChat: "delivery reports" for MUC.

parent cfacfedc
...@@ -228,6 +228,9 @@ public class RoomChat extends AbstractChat { ...@@ -228,6 +228,9 @@ public class RoomChat extends AbstractChat {
for (MessageItem messageItem : messages) { for (MessageItem messageItem : messages) {
// Search for duplicates // Search for duplicates
if (packetID != null && packetID.equals(messageItem.getPacketID())) { if (packetID != null && packetID.equals(messageItem.getPacketID())) {
// Server send our own message back
messageItem.markAsDelivered();
RosterManager.getInstance().onContactChanged(account, user);
return true; return true;
} }
if (delay != null) { if (delay != null) {
......
...@@ -211,7 +211,7 @@ public class MessageItem implements Comparable<MessageItem> { ...@@ -211,7 +211,7 @@ public class MessageItem implements Comparable<MessageItem> {
read = true; read = true;
} }
void markAsDelivered() { public void markAsDelivered() {
delivered = true; delivered = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment