mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-05 10:55:40 +00:00
Clean
This commit is contained in:
parent
43f34b259b
commit
88403024eb
@ -116,7 +116,7 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
|
|||||||
|
|
||||||
// Loki
|
// Loki
|
||||||
private LokiLongPoller lokiLongPoller = null;
|
private LokiLongPoller lokiLongPoller = null;
|
||||||
private LokiGroupChatPoller lokiGroupChatPoller = null;
|
private LokiGroupChatPoller lokiPublicChatPoller = null;
|
||||||
public SignalCommunicationModule communicationModule;
|
public SignalCommunicationModule communicationModule;
|
||||||
|
|
||||||
private volatile boolean isAppVisible;
|
private volatile boolean isAppVisible;
|
||||||
@ -426,8 +426,8 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setUpPublicChatIfNeeded() {
|
private void setUpPublicChatIfNeeded() {
|
||||||
if (lokiGroupChatPoller != null) return;
|
if (lokiPublicChatPoller != null) return;
|
||||||
lokiGroupChatPoller = new LokiGroupChatPoller(this, LokiGroupChatAPI.getPublicChatID());
|
lokiPublicChatPoller = new LokiGroupChatPoller(this, LokiGroupChatAPI.getPublicChatID());
|
||||||
boolean isPublicChatSetUp = TextSecurePreferences.isPublicChatSetUp(this);
|
boolean isPublicChatSetUp = TextSecurePreferences.isPublicChatSetUp(this);
|
||||||
if (isPublicChatSetUp) return;
|
if (isPublicChatSetUp) return;
|
||||||
String id = LokiGroupChatAPI.getServerURL() + "." + LokiGroupChatAPI.getPublicChatID();
|
String id = LokiGroupChatAPI.getServerURL() + "." + LokiGroupChatAPI.getPublicChatID();
|
||||||
@ -437,7 +437,7 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
|
|||||||
|
|
||||||
public void startPublicChatPollingIfNeeded() {
|
public void startPublicChatPollingIfNeeded() {
|
||||||
setUpPublicChatIfNeeded();
|
setUpPublicChatIfNeeded();
|
||||||
lokiGroupChatPoller.startIfNeeded();
|
lokiPublicChatPoller.startIfNeeded();
|
||||||
}
|
}
|
||||||
// endregion
|
// endregion
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user