2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix toggling chatbot replying, fix saving.

This commit is contained in:
John Preston
2024-04-09 11:55:38 +04:00
parent 72770aa76d
commit 29dd574e22
7 changed files with 22 additions and 10 deletions

View File

@@ -220,7 +220,7 @@ void AwayMessage::setupContent(
_recipients = disabled
? Data::BusinessRecipients{ .allButExcluded = true }
: current.recipients;
: Data::BusinessRecipients::MakeValid(current.recipients);
auto initialSchedule = disabled ? AwaySchedule{
.type = AwayScheduleType::Always,
} : current.schedule;

View File

@@ -408,7 +408,7 @@ void Chatbots::setupContent(
const auto content = Ui::CreateChild<Ui::VerticalLayout>(this);
const auto current = controller->session().data().chatbots().current();
_recipients = current.recipients;
_recipients = Data::BusinessRecipients::MakeValid(current.recipients);
_repliesAllowed = current.repliesAllowed;
AddDividerTextWithLottie(content, {

View File

@@ -125,7 +125,7 @@ void Greeting::setupContent(
_recipients = disabled
? Data::BusinessRecipients{ .allButExcluded = true }
: current.recipients;
: Data::BusinessRecipients::MakeValid(current.recipients);
_noActivityDays = disabled
? kDefaultNoActivityDays
: current.noActivityDays;