mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-01 05:55:18 +00:00
feat: add groups to configs for push
This commit is contained in:
parent
061cff8437
commit
0fc5675e42
@ -48,11 +48,7 @@ data class ConfigurationSyncJob(val destination: Destination): Job {
|
||||
val configFactory = MessagingModuleConfiguration.shared.configFactory
|
||||
|
||||
// get latest states, filter out configs that don't need push
|
||||
val configsRequiringPush = listOfNotNull(
|
||||
configFactory.user,
|
||||
configFactory.contacts,
|
||||
configFactory.convoVolatile
|
||||
).filter { config -> config.needsPush() }
|
||||
val configsRequiringPush = configFactory.getUserConfigs().filter { config -> config.needsPush() }
|
||||
|
||||
// don't run anything if we don't need to push anything
|
||||
if (configsRequiringPush.isEmpty()) return delegate.handleJobSucceeded(this, dispatcherName)
|
||||
|
Loading…
Reference in New Issue
Block a user