diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-02 00:24:37 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-06-02 00:24:37 +0200 |
commit | 25211f13b37ecef64d6fa9a382a2c30d212452ae (patch) | |
tree | 28c00ef806b77afa4ee8d7a519d4e9968e2b2fb5 /src/main/java/eu/siacs/conversations/entities | |
parent | e43a01159cc511e674ccdfccc3f7fa5f118d4a83 (diff) |
make grace period configurable
Diffstat (limited to 'src/main/java/eu/siacs/conversations/entities')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Account.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Account.java b/src/main/java/eu/siacs/conversations/entities/Account.java index 2f573c896..3e79fccd9 100644 --- a/src/main/java/eu/siacs/conversations/entities/Account.java +++ b/src/main/java/eu/siacs/conversations/entities/Account.java @@ -542,9 +542,8 @@ public class Account extends AbstractEntity { return this.avatar; } - public void activateGracePeriod() { - this.mEndGracePeriod = SystemClock.elapsedRealtime() - + (Config.CARBON_GRACE_PERIOD * 1000); + public void activateGracePeriod(long duration) { + this.mEndGracePeriod = SystemClock.elapsedRealtime() + duration; } public void deactivateGracePeriod() { |