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 {
for (MessageItem messageItem : messages) {
// Search for duplicates
if (packetID != null && packetID.equals(messageItem.getPacketID())) {
// Server send our own message back
messageItem.markAsDelivered();
RosterManager.getInstance().onContactChanged(account, user);
return true;
}
if (delay != null) {
......
......@@ -211,7 +211,7 @@ public class MessageItem implements Comparable<MessageItem> {
read = true;
}
void markAsDelivered() {
public void markAsDelivered() {
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