mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
lint
This commit is contained in:
parent
60b351cddd
commit
7405d501f6
@ -39,7 +39,6 @@ val PushRule.notificationIndex: NotificationIndex? get() =
|
||||
ruleMatches(this, targetRule)
|
||||
}
|
||||
|
||||
|
||||
private fun ruleMatches(rule: PushRule, targetRule: PushRule): Boolean {
|
||||
// Rules match if both are disabled, or if both are enabled and their highlight/sound/notify actions match up.
|
||||
return (!rule.enabled && !targetRule.enabled)
|
||||
|
@ -17,8 +17,6 @@
|
||||
package im.vector.app.features.settings.notifications
|
||||
|
||||
import org.matrix.android.sdk.api.pushrules.RuleIds
|
||||
import org.matrix.android.sdk.api.pushrules.rest.PushRule
|
||||
import org.matrix.android.sdk.api.pushrules.toJson
|
||||
|
||||
fun getStandardAction(ruleId: String, index: NotificationIndex): StandardActions? {
|
||||
return when (ruleId) {
|
||||
|
Loading…
Reference in New Issue
Block a user