feat: add groups to configs for push

This commit is contained in:
0x330a
2023-03-16 12:16:10 +11:00
parent 061cff8437
commit 0fc5675e42

View File

@@ -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)