2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Allow editing sessions auto-termination period.

This commit is contained in:
John Preston
2021-11-26 00:52:06 +04:00
parent fe4bb19358
commit f3e1aef264
9 changed files with 143 additions and 23 deletions

View File

@@ -693,6 +693,7 @@ void SetupSelfDestruction(
)->addClickHandler([=] {
controller->show(Box<SelfDestructionBox>(
session,
SelfDestructionBox::Type::Account,
session->api().selfDestruct().days()));
});
@@ -800,7 +801,7 @@ void SetupSessionsList(
std::move(count),
st::settingsButton
)->addClickHandler([=] {
controller->show(Box<SessionsBox>(&controller->session()));
controller->show(Box<SessionsBox>(controller));
});
AddSkip(container, st::settingsPrivacySecurityPadding);
AddDividerText(container, tr::lng_settings_sessions_about());