Fix build

This commit is contained in:
Niels Andriesse 2019-07-22 10:41:50 +10:00
parent 61622fbd3d
commit 19cdf8068d
2 changed files with 5 additions and 3 deletions

View File

@ -10,11 +10,11 @@ import org.thoughtcrime.securesms.logging.Log;
import org.whispersystems.libsignal.SignalProtocolAddress;
import org.whispersystems.libsignal.protocol.CiphertextMessage;
import org.whispersystems.libsignal.state.SessionRecord;
import org.whispersystems.libsignal.state.SessionStore;
import org.whispersystems.signalservice.loki.messaging.LokiSessionProtocol;
import java.util.List;
public class TextSecureSessionStore implements SessionStore {
public class TextSecureSessionStore implements LokiSessionProtocol {
private static final String TAG = TextSecureSessionStore.class.getSimpleName();

View File

@ -7,6 +7,7 @@ import org.thoughtcrime.securesms.BuildConfig;
import org.thoughtcrime.securesms.CreateProfileActivity;
import org.thoughtcrime.securesms.DeviceListFragment;
import org.thoughtcrime.securesms.crypto.storage.SignalProtocolStoreImpl;
import org.thoughtcrime.securesms.crypto.storage.TextSecureSessionStore;
import org.thoughtcrime.securesms.database.DatabaseFactory;
import org.thoughtcrime.securesms.events.ReminderUpdateEvent;
import org.thoughtcrime.securesms.gcm.FcmService;
@ -140,7 +141,8 @@ public class SignalCommunicationModule {
DatabaseFactory.getLokiAPIDatabase(context),
DatabaseFactory.getLokiThreadDatabase(context),
DatabaseFactory.getLokiMessageFriendRequestDatabase(context),
DatabaseFactory.getLokiPreKeyBundleDatabase(context));
DatabaseFactory.getLokiPreKeyBundleDatabase(context),
new TextSecureSessionStore(context));
} else {
this.messageSender.setMessagePipe(IncomingMessageObserver.getPipe(), IncomingMessageObserver.getUnidentifiedPipe());
this.messageSender.setIsMultiDevice(TextSecurePreferences.isMultiDevice(context));