mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-30 15:50:53 +08: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
@ -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 New Issue
Block a user