Update for core changes

This commit is contained in:
Niels Andriesse 2019-06-12 11:41:50 +10:00
parent 69ecb19654
commit 8e16bee431

View File

@ -140,11 +140,8 @@ public class SignalCommunicationModule {
Optional.of(new SecurityEventListener(context)),
TextSecurePreferences.getLocalNumber(context),
0,
DatabaseFactory.getLokiAPIDatabase(context));
// Loki - Set the pre key bundle store
// This is something that we MUST have or our Loki logic will fail
this.messageSender.setPreKeyBundleStore(new LokiPreKeyBundleStore(context));
DatabaseFactory.getLokiAPIDatabase(context),
new LokiPreKeyBundleStore(context));
} else {
this.messageSender.setMessagePipe(IncomingMessageObserver.getPipe(), IncomingMessageObserver.getUnidentifiedPipe());
this.messageSender.setIsMultiDevice(TextSecurePreferences.isMultiDevice(context));