diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index d5ca2f5b97..d35edf2f81 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -1725,6 +1725,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_delete_for_me_hint#one" = "This will delete it just for you."; "lng_delete_for_me_hint#other" = "This will delete them just for you."; "lng_edit_auto_delete_settings" = "Edit Auto-Delete Settings"; +"lng_enable_auto_delete" = "Enable Auto-Delete"; "lng_selected_unsend_about_user_one" = "You can also delete the message you sent from {user}'s inbox by checking \"Unsend my messages\"."; "lng_selected_unsend_about_user#one" = "You can also delete the {count} message you sent from {user}'s inbox by checking \"Unsend my messages\"."; "lng_selected_unsend_about_user#other" = "You can also delete the {count} messages you sent from {user}'s inbox by checking \"Unsend my messages\"."; diff --git a/Telegram/SourceFiles/boxes/confirm_box.cpp b/Telegram/SourceFiles/boxes/confirm_box.cpp index cc10c6bf6d..9c90309a47 100644 --- a/Telegram/SourceFiles/boxes/confirm_box.cpp +++ b/Telegram/SourceFiles/boxes/confirm_box.cpp @@ -675,7 +675,9 @@ void DeleteMessagesBox::prepare() { _wipeHistoryPeer->updateFull(); _autoDeleteSettings.create( this, - tr::lng_edit_auto_delete_settings(tr::now), + (_wipeHistoryPeer->messagesTTL() + ? tr::lng_edit_auto_delete_settings(tr::now) + : tr::lng_enable_auto_delete(tr::now)), st::boxLinkButton); _autoDeleteSettings->setClickedCallback([=] { getDelegate()->show(