-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0000-applicationcontext.patch
More file actions
24 lines (21 loc) · 1.28 KB
/
0000-applicationcontext.patch
File metadata and controls
24 lines (21 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/app/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java b/app/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java
index 9046546..c719092 100644
--- a/app/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java
+++ b/app/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java
@@ -386,13 +386,13 @@ public class ApplicationContext extends MultiDexApplication implements AppForegr
private void initializeFcmCheck() {
if (SignalStore.account().isRegistered()) {
- long lastSetTime = SignalStore.account().getFcmTokenLastSetTime();
- long nextSetTime = lastSetTime + TimeUnit.HOURS.toMillis(6);
- long now = System.currentTimeMillis();
+ // long lastSetTime = SignalStore.account().getFcmTokenLastSetTime();
+ // long nextSetTime = lastSetTime + TimeUnit.HOURS.toMillis(6);
+ // long now = System.currentTimeMillis();
- if (SignalStore.account().getFcmToken() == null || nextSetTime <= now || lastSetTime > now) {
- AppDependencies.getJobManager().add(new FcmRefreshJob());
- }
+ // if (SignalStore.account().getFcmToken() == null || nextSetTime <= now || lastSetTime > now) {
+ // AppDependencies.getJobManager().add(new FcmRefreshJob());
+ // }
}
}