mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-20 20:48:57 +00:00
refactor: moving some properties around so we have access in libsession
This commit is contained in:
@@ -207,7 +207,9 @@ public class ApplicationContext extends Application implements DefaultLifecycleO
|
||||
messagingModuleConfiguration = new MessagingModuleConfiguration(this,
|
||||
storage,
|
||||
messageDataProvider,
|
||||
()-> KeyPairUtilities.INSTANCE.getUserED25519KeyPair(this));
|
||||
()-> KeyPairUtilities.INSTANCE.getUserED25519KeyPair(this),
|
||||
configFactory
|
||||
);
|
||||
// migrate session open group data
|
||||
OpenGroupMigrator.migrate(getDatabaseComponent());
|
||||
// end migration
|
||||
|
@@ -1,6 +1,7 @@
|
||||
package org.thoughtcrime.securesms.util
|
||||
|
||||
import android.content.Context
|
||||
import network.loki.messenger.libsession_util.ConfigBase
|
||||
import network.loki.messenger.libsession_util.Contacts
|
||||
import network.loki.messenger.libsession_util.UserProfile
|
||||
import network.loki.messenger.libsession_util.util.Contact
|
||||
@@ -15,12 +16,10 @@ import org.session.libsession.utilities.TextSecurePreferences
|
||||
|
||||
object ConfigurationMessageUtilities {
|
||||
|
||||
const val isNewConfigEnabled = true
|
||||
|
||||
@JvmStatic
|
||||
fun syncConfigurationIfNeeded(context: Context) {
|
||||
// add if check here to schedule new config job process and return early
|
||||
if (isNewConfigEnabled) {
|
||||
if (ConfigBase.isNewConfigEnabled) {
|
||||
// schedule job if none exist
|
||||
TODO()
|
||||
}
|
||||
@@ -48,7 +47,7 @@ object ConfigurationMessageUtilities {
|
||||
|
||||
fun forceSyncConfigurationNowIfNeeded(context: Context): Promise<Unit, Exception> {
|
||||
// add if check here to schedule new config job process and return early
|
||||
if (isNewConfigEnabled) {
|
||||
if (ConfigBase.isNewConfigEnabled) {
|
||||
// schedule job if none exist
|
||||
TODO()
|
||||
}
|
||||
|
Reference in New Issue
Block a user