diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 898d13bd9..2462ecb6b 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -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:"; diff --git a/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp b/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp index ebb5bfc5b..7e3d8b69a 100644 --- a/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp +++ b/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp @@ -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) {