aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/parser/MessageParser.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-10-17 11:01:38 +0200
committeriNPUTmice <daniel@gultsch.de>2014-10-17 11:01:38 +0200
commit3372e50155ac16c9eabce9a484914c2acbf391c8 (patch)
treead00d1e203d0adf56f27a44cd4a9e12301ac41dc /src/eu/siacs/conversations/parser/MessageParser.java
parent5e3caf962696d3fe39e7ce70274530aa4f77d134 (diff)
made grace period on a per account basis
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/parser/MessageParser.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/eu/siacs/conversations/parser/MessageParser.java b/src/eu/siacs/conversations/parser/MessageParser.java
index 486dd389..4090ed39 100644
--- a/src/eu/siacs/conversations/parser/MessageParser.java
+++ b/src/eu/siacs/conversations/parser/MessageParser.java
@@ -417,8 +417,7 @@ public class MessageParser extends AbstractParser implements
message = this.parseCarbonMessage(packet, account);
if (message != null) {
if (message.getStatus() == Message.STATUS_SEND) {
- mXmppConnectionService.getNotificationService()
- .activateGracePeriod();
+ account.activateGracePeriod();
notify = false;
mXmppConnectionService.markRead(
message.getConversation(), false);
@@ -440,8 +439,7 @@ public class MessageParser extends AbstractParser implements
} else {
mXmppConnectionService.markRead(message.getConversation(),
false);
- mXmppConnectionService.getNotificationService()
- .activateGracePeriod();
+ account.activateGracePeriod();
notify = false;
}
}