Improve auto-delete settings phrase.

This commit is contained in:
John Preston 2021-02-23 19:18:09 +04:00
parent 975fcb0c1a
commit 522a71f7dc
2 changed files with 4 additions and 1 deletions

View file

@ -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\".";

View file

@ -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(