2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Allow all messages silent in support mode.

This commit is contained in:
John Preston
2020-11-19 16:23:51 +03:00
parent 1affb8172f
commit 00504b61cd
8 changed files with 70 additions and 38 deletions

View File

@@ -1419,6 +1419,20 @@ void SetupSupport(
controller->session().saveSettingsDelayed();
}, inner->lifetime());
inner->add(
object_ptr<Ui::Checkbox>(
inner,
"Send all messages without sound",
controller->session().settings().supportAllSilent(),
st::settingsCheckbox),
st::settingsSendTypePadding
)->checkedChanges(
) | rpl::start_with_next([=](bool checked) {
controller->session().settings().setSupportAllSilent(
checked);
controller->session().saveSettingsDelayed();
}, inner->lifetime());
AddSkip(inner, st::settingsCheckboxesSkip);
AddSubsectionTitle(inner, rpl::single(qsl("Load chats for a period")));