mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 11:59:12 +03:00
Merge pull request #7918 from vector-im/feature/bma/pushRuleModel
Remove the "device" field from get `/pushrules` response model.
This commit is contained in:
commit
4f829f11d8
2 changed files with 0 additions and 7 deletions
|
@ -30,10 +30,4 @@ internal data class GetPushRulesResponse(
|
|||
*/
|
||||
@Json(name = "global")
|
||||
val global: RuleSet,
|
||||
|
||||
/**
|
||||
* Device specific rules, apply only to current device.
|
||||
*/
|
||||
@Json(name = "device")
|
||||
val device: RuleSet? = null
|
||||
)
|
||||
|
|
|
@ -42,7 +42,6 @@ internal class DefaultSavePushRulesTask @Inject constructor(@SessionDatabase pri
|
|||
.findAll()
|
||||
.forEach { it.deleteOnCascade() }
|
||||
|
||||
// Save only global rules for the moment
|
||||
val globalRules = params.pushRules.global
|
||||
|
||||
val content = PushRulesEntity(RuleScope.GLOBAL).apply { kind = RuleSetKey.CONTENT }
|
||||
|
|
Loading…
Reference in a new issue