|
|
@ -108,12 +108,13 @@ class LandingActivity : BaseActionBarActivity(), LinkDeviceSlaveModeDialogDelega
|
|
|
|
val apiDB = DatabaseFactory.getLokiAPIDatabase(this)
|
|
|
|
val apiDB = DatabaseFactory.getLokiAPIDatabase(this)
|
|
|
|
val threadDB = DatabaseFactory.getLokiThreadDatabase(this)
|
|
|
|
val threadDB = DatabaseFactory.getLokiThreadDatabase(this)
|
|
|
|
val userDB = DatabaseFactory.getLokiUserDatabase(this)
|
|
|
|
val userDB = DatabaseFactory.getLokiUserDatabase(this)
|
|
|
|
|
|
|
|
val sskDatabase = DatabaseFactory.getSSKDatabase(this)
|
|
|
|
val userPublicKey = TextSecurePreferences.getLocalNumber(this)
|
|
|
|
val userPublicKey = TextSecurePreferences.getLocalNumber(this)
|
|
|
|
val sessionResetImpl = SessionResetImplementation(this)
|
|
|
|
val sessionResetImpl = SessionResetImplementation(this)
|
|
|
|
MentionsManager.configureIfNeeded(userPublicKey, threadDB, userDB)
|
|
|
|
MentionsManager.configureIfNeeded(userPublicKey, threadDB, userDB)
|
|
|
|
SessionMetaProtocol.configureIfNeeded(apiDB, userPublicKey)
|
|
|
|
SessionMetaProtocol.configureIfNeeded(apiDB, userPublicKey)
|
|
|
|
org.whispersystems.signalservice.loki.protocol.shelved.multidevice.MultiDeviceProtocol.configureIfNeeded(apiDB)
|
|
|
|
org.whispersystems.signalservice.loki.protocol.shelved.multidevice.MultiDeviceProtocol.configureIfNeeded(apiDB)
|
|
|
|
SessionManagementProtocol.configureIfNeeded(sessionResetImpl, threadDB, application)
|
|
|
|
SessionManagementProtocol.configureIfNeeded(sessionResetImpl, sskDatabase, application)
|
|
|
|
SyncMessagesProtocol.configureIfNeeded(apiDB, userPublicKey)
|
|
|
|
SyncMessagesProtocol.configureIfNeeded(apiDB, userPublicKey)
|
|
|
|
application.setUpP2PAPIIfNeeded()
|
|
|
|
application.setUpP2PAPIIfNeeded()
|
|
|
|
application.setUpStorageAPIIfNeeded()
|
|
|
|
application.setUpStorageAPIIfNeeded()
|
|
|
|