import QtQuick import qs.Common import qs.Widgets import qs.Modules.Plugins // Matrix's own settings area, loaded by ChatSettings.qml's protocol rail - // see IrcSettingsPanel.qml's own doc comment for the general pattern. // Deliberately just the membership-announcement toggles for now - account- // level things (session verification, recovery key/backup, device // management) live under each account's own row in AccountsPanel.qml // instead, not here (a room-open toggle isn't tied to any one account the // way those are). PluginSettings { id: root pluginId: "dankChat" StyledText { width: parent.width text: "Membership announcements" font.weight: Font.Medium color: Theme.surfaceVariantText } StyledText { width: parent.width text: "Shown as chat messages in the room they happened in - chatd always records them regardless of these toggles, so turning one on retroactively reveals events that already happened while it was off." wrapMode: Text.WordWrap font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText } ToggleSetting { settingKey: "matrix.showJoinMessages" label: "Show join messages" description: "\"X joined the room\"" defaultValue: true } ToggleSetting { settingKey: "matrix.showInviteMessages" label: "Show invite messages" description: "\"X was invited by Y\"" defaultValue: true } ToggleSetting { settingKey: "matrix.showKickMessages" label: "Show kick/ban messages" description: "\"X was kicked by Y\" or \"X was banned by Y\", including the reason if one was given" defaultValue: true } ToggleSetting { settingKey: "matrix.showQuitMessages" label: "Show quit messages" description: "\"X left the room\"" defaultValue: true } }