mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Show forwards toggle in recent actions.
This commit is contained in:
parent
154c0e6bb2
commit
3a536c6f75
2 changed files with 7 additions and 1 deletions
|
@ -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:";
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue