Fix ignoring invitations

This commit is contained in:
Tobias Fella
2024-08-24 17:32:15 +02:00
parent aeb566746a
commit e3059e636a

View File

@@ -31,11 +31,11 @@ FormCard.FormCardPage {
FormCard.FormCheckDelegate { FormCard.FormCheckDelegate {
text: i18nc("@option:check", "Reject invitations from unknown users") text: i18nc("@option:check", "Reject invitations from unknown users")
description: connection.canCheckMutualRooms ? i18n("If enabled, NeoChat will reject invitations from users you don't share a room with.") : i18n("Your server does not support this setting.") description: connection.canCheckMutualRooms ? i18n("If enabled, NeoChat will reject invitations from users you don't share a room with.") : i18n("Your server does not support this setting.")
checked: Config.rejectUnknownInvites checked: NeoChatConfig.rejectUnknownInvites
enabled: !Config.isRejectUnknownInvitesImmutable && connection.canCheckMutualRooms enabled: !NeoChatConfig.isRejectUnknownInvitesImmutable && connection.canCheckMutualRooms
onToggled: { onToggled: {
Config.rejectUnknownInvites = checked; NeoChatConfig.rejectUnknownInvites = checked;
Config.save(); NeoChatConfig.save();
} }
} }
} }