diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 89296802d7..bb91118457 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -1913,6 +1913,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_delete_for_me_chat_hint#other" = "This will delete them just for you, not for other participants of the chat."; "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_delete_clear_for_me" = "This will clear history just for you, not for other participants of the chat."; "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\"."; diff --git a/Telegram/SourceFiles/boxes/delete_messages_box.cpp b/Telegram/SourceFiles/boxes/delete_messages_box.cpp index 30c33f7c65..400664ea91 100644 --- a/Telegram/SourceFiles/boxes/delete_messages_box.cpp +++ b/Telegram/SourceFiles/boxes/delete_messages_box.cpp @@ -156,6 +156,12 @@ void DeleteMessagesBox::prepare() { : tr::lng_box_leave(); }, _revoke->lifetime()); } + } else if (canDelete + && _wipeHistoryJustClear + && (peer->isMegagroup() || peer->isChat())) { + appendDetails({ + tr::lng_delete_clear_for_me(tr::now) + }); } } else if (_moderateFrom) { Assert(_moderateInChannel != nullptr);