Fix ignoring invitations
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user