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:
@@ -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;
|
||||
|
@@ -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, {
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user