Show forwards toggle in recent actions.

This commit is contained in:
John Preston 2021-11-05 18:50:50 +04:00
parent 154c0e6bb2
commit 3a536c6f75
2 changed files with 7 additions and 1 deletions

View file

@ -2476,6 +2476,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_admin_log_invites_disabled" = "{from} disabled group invites";
"lng_admin_log_signatures_enabled" = "{from} enabled signatures";
"lng_admin_log_signatures_disabled" = "{from} disabled signatures";
"lng_admin_log_forwards_enabled" = "{from} allowed content copying";
"lng_admin_log_forwards_disabled" = "{from} restricted content copying";
"lng_admin_log_history_made_hidden" = "{from} made group history hidden for new members";
"lng_admin_log_history_made_visible" = "{from} made group history visible for new members";
"lng_admin_log_pinned_message" = "{from} pinned message:";

View file

@ -1116,7 +1116,11 @@ void GenerateItems(
};
auto createToggleNoForwards = [&](const MTPDchannelAdminLogEventActionToggleNoForwards &data) {
// #TODO noforwards
const auto disabled = (data.vnew_value().type() == mtpc_boolTrue);
const auto text = (disabled
? tr::lng_admin_log_forwards_disabled
: tr::lng_admin_log_forwards_enabled);
addSimpleServiceMessage(text(tr::now, lt_from, fromLinkText));
};
action.match([&](const MTPDchannelAdminLogEventActionChangeTitle &data) {