This commit is contained in:
Niels Andriesse 2019-08-21 14:53:14 +10:00
parent 43f34b259b
commit 88403024eb

View File

@ -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
} }