PushRule RoomList Room Menu Option

Add an option to the roomlist room menu to set the room push rule override.

Rename default to "follow global setting" for clarity.
This commit is contained in:
James Graham
2022-09-11 10:29:05 +00:00
parent 80bf279321
commit 7e1f0f4ea7
2 changed files with 52 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ Kirigami.ScrollablePage {
Layout.fillWidth: true
QQC2.RadioButton {
text: i18n("Default")
text: i18n("Follow global setting")
Kirigami.FormData.label: i18n("Room notifications setting:")
checked: room.pushNotificationState === PushNotificationState.Default
enabled: room.pushNotificationState != PushNotificationState.Unknown
@@ -29,7 +29,7 @@ Kirigami.ScrollablePage {
}
}
QQC2.RadioButton {
text: i18n("All messages")
text: i18nc("As in 'notify for all messages'","All")
checked: room.pushNotificationState === PushNotificationState.All
enabled: room.pushNotificationState != PushNotificationState.Unknown
onToggled: {
@@ -37,7 +37,7 @@ Kirigami.ScrollablePage {
}
}
QQC2.RadioButton {
text: i18n("@mentions and keywords")
text: i18nc("As in 'notify when the user is mentioned or the message contains a set keyword'","@Mentions and Keywords")
checked: room.pushNotificationState === PushNotificationState.MentionKeyword
enabled: room.pushNotificationState != PushNotificationState.Unknown
onToggled: {
@@ -45,7 +45,7 @@ Kirigami.ScrollablePage {
}
}
QQC2.RadioButton {
text: i18n("Off")
text: i18nc("As in 'do not notify for any messages'","Off")
checked: room.pushNotificationState === PushNotificationState.Mute
enabled: room.pushNotificationState != PushNotificationState.Unknown
onToggled: {