Commit 9cbd34fc authored by Robert Bost's avatar Robert Bost

Resolved issue with receiving chat notification when loading history of...

Resolved issue with receiving chat notification when loading history of persistence Conference from server.
parent 14f86fcb
......@@ -215,8 +215,12 @@ public class RoomChat extends AbstractChat {
RosterManager.getInstance().onContactChanged(account, bareAddress);
newAction(resource, subject, ChatAction.subject);
} else {
boolean notify = true;
String packetID = message.getPacketID();
Date delay = Delay.getDelay(message);
if (delay != null) {
notify = false;
}
for (MessageItem messageItem : messages) {
// Search for duplicates
if (packetID != null && packetID.equals(messageItem.getPacketID())) {
......@@ -232,7 +236,7 @@ public class RoomChat extends AbstractChat {
}
updateThreadId(message.getThread());
MessageItem messageItem = newMessage(resource, text, null,
delay, true, true, false, false, true);
delay, true, notify, false, false, true);
messageItem.setPacketID(packetID);
}
} else if (packet instanceof Presence) {
......
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