diff options
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/parser/AbstractParser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/parser/AbstractParser.java b/src/eu/siacs/conversations/parser/AbstractParser.java index 8c6ad2ab2..2bd839f1f 100644 --- a/src/eu/siacs/conversations/parser/AbstractParser.java +++ b/src/eu/siacs/conversations/parser/AbstractParser.java @@ -34,7 +34,7 @@ public abstract class AbstractParser { } } - protected void updateLastseen(Element packet, Account account) { + protected void updateLastseen(Element packet, Account account, boolean presenceOverwrite) { String[] fromParts = packet.getAttribute("from").split("/"); String from = fromParts[0]; String presence = null; @@ -45,7 +45,7 @@ public abstract class AbstractParser { long timestamp = getTimestamp(packet); if (timestamp >= contact.lastseen.time) { contact.lastseen.time = timestamp; - if (presence!=null) { + if ((presence!=null)&&(presenceOverwrite)) { contact.lastseen.presence = presence; } } |