mtx::pushrules::PushCondition struct

A condition to match pushrules on.

Public variables

std::string kind
Required. The kind of condition to apply. See conditions for more information on the allowed kinds and how they work.
std::string key
Required for event_match conditions. The dot- separated field of the event to match.
std::string pattern
Required for event_match conditions. The glob- style pattern to match against. Patterns with no special glob characters should be treated as having asterisks prepended and appended when testing the condition.
std::optional<std::variant<std::string, std::int64_t, bool, std::nullptr_t>> value
Required for event_property_is and event_property_contains conditions. A non compound json value.
std::string is
Required for room_member_count conditions. A decimal integer optionally prefixed by one of, ==, <, >, >= or <=. A prefix of < matches rooms where the member count is strictly less than the given number and so forth. If no prefix is present, this parameter defaults to ==.
mtx::common::RelationType rel_type
The relation type to match on. Only valid for im.nheko.msc3664.related_event_match conditions.
bool include_fallback
Wether to match fallback relations or not.

Variable documentation

std::string mtx::pushrules::PushCondition::key

Required for event_match conditions. The dot- separated field of the event to match.

Required for sender_notification_permission conditions. The field in the power level event the user needs a minimum power level for. Fields must be specified under the notifications property in the power level event's content.