Warn about supergroup clearing history just for me.

This commit is contained in:
John Preston 2022-02-01 19:41:51 +03:00
parent 9086319b99
commit 5f6d8f74dd
2 changed files with 7 additions and 0 deletions

View file

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

View file

@ -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);