Cleanup
This commit is contained in:
parent
faa8e6bbb2
commit
d25cf79b07
@ -58,8 +58,6 @@ internal class DefaultPushRuleService @Inject constructor(private val getPushRul
|
||||
var underrideRules: List<PushRule> = emptyList()
|
||||
|
||||
monarchy.doWithRealm { realm ->
|
||||
// FIXME PushRulesEntity are not always created here...
|
||||
// FIWME Get the push rules from the sync
|
||||
PushRulesEntity.where(realm, scope, RuleSetKey.CONTENT)
|
||||
.findFirst()
|
||||
?.let { pushRulesEntity ->
|
||||
|
@ -37,8 +37,7 @@ internal class DefaultSavePushRulesTask @Inject constructor(private val monarchy
|
||||
|
||||
override suspend fun execute(params: SavePushRulesTask.Params) {
|
||||
monarchy.awaitTransaction { realm ->
|
||||
//clear existings?
|
||||
//TODO
|
||||
// clear current push rules
|
||||
realm.where(PushRulesEntity::class.java)
|
||||
.findAll()
|
||||
.deleteAllFromRealm()
|
||||
|
Loading…
x
Reference in New Issue
Block a user