SenderNotificationPermissionCondition

class SenderNotificationPermissionCondition(val key: String) : Condition

Constructors

Link copied to clipboard
fun SenderNotificationPermissionCondition(key: String)

Functions

Link copied to clipboard
open override fun isSatisfied(event: Event, conditionResolver: ConditionResolver): Boolean
fun isSatisfied(event: Event, powerLevels: PowerLevelsContent): Boolean
Link copied to clipboard
open override fun technicalDescription(): String

Properties

Link copied to clipboard
val key: String

A string that determines the power level the sender must have to trigger notifications of a given type, such as room. Refer to the m.room.power_levels event schema for information about what the defaults are and how to interpret the event. The key is used to look up the power level required to send a notification type from the notifications object in the power level event content.