Re-enable group chats

This commit is contained in:
Niels Andriesse 2019-08-19 10:37:17 +10:00
parent cdd5f94857
commit a3cb8eb969
2 changed files with 2 additions and 6 deletions

View File

@ -37,6 +37,7 @@ import org.thoughtcrime.securesms.database.DatabaseFactory;
import org.thoughtcrime.securesms.dependencies.AxolotlStorageModule;
import org.thoughtcrime.securesms.dependencies.InjectableType;
import org.thoughtcrime.securesms.dependencies.SignalCommunicationModule;
import org.thoughtcrime.securesms.groups.GroupManager;
import org.thoughtcrime.securesms.jobmanager.DependencyInjector;
import org.thoughtcrime.securesms.jobmanager.JobManager;
import org.thoughtcrime.securesms.jobmanager.impl.JsonDataSerializer;
@ -77,6 +78,7 @@ import org.webrtc.voiceengine.WebRtcAudioUtils;
import org.whispersystems.libsignal.logging.SignalProtocolLoggerProvider;
import org.whispersystems.signalservice.api.messages.SignalServiceEnvelope;
import org.whispersystems.signalservice.internal.push.SignalServiceProtos;
import org.whispersystems.signalservice.loki.api.LokiGroupChatAPI;
import org.whispersystems.signalservice.loki.api.LokiLongPoller;
import org.whispersystems.signalservice.loki.api.LokiP2PAPI;
import org.whispersystems.signalservice.loki.api.LokiP2PAPIDelegate;
@ -423,8 +425,6 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
if (lokiLongPoller != null) { lokiLongPoller.startIfNeeded(); }
}
/*
// TODO: Uncomment this to re-enable group chats
private void setUpPublicChatIfNeeded() {
if (lokiGroupChatPoller != null) return;
lokiGroupChatPoller = new LokiGroupChatPoller(this, LokiGroupChatAPI.getPublicChatID());
@ -439,6 +439,5 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
setUpPublicChatIfNeeded();
lokiGroupChatPoller.startIfNeeded();
}
*/
// endregion
}

View File

@ -81,12 +81,9 @@ public class ConversationListActivity extends PassphraseRequiredActionBarActivit
protected void onPreCreate() {
dynamicTheme.onCreate(this);
dynamicLanguage.onCreate(this);
/*
// TODO: Uncomment this to re-enable group chats
if (TextSecurePreferences.getLocalNumber(this) != null) {
ApplicationContext.getInstance(this).startPublicChatPollingIfNeeded();
}
*/
}
@Override