mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Add admin event log phrases about reactions.
This commit is contained in:
parent
a8bc7baa70
commit
87e97ad533
2 changed files with 10 additions and 1 deletions
|
@ -2585,6 +2585,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
"lng_admin_log_messages_ttl_set" = "{from} enabled messages auto-delete after {duration}";
|
||||
"lng_admin_log_messages_ttl_changed" = "{from} changed messages auto-delete period from {previous} to {duration}";
|
||||
"lng_admin_log_messages_ttl_removed" = "{from} disabled messages auto-deletion after {duration}";
|
||||
"lng_admin_log_reactions_disabled" = "{from} disabled reactions";
|
||||
"lng_admin_log_reactions_updated" = "{from} updated the list of allowed reactions to: {emoji}";
|
||||
"lng_admin_log_edited_invite_link" = "edited invite link {link}";
|
||||
"lng_admin_log_invite_link_expire_date" = "Expire date: {previous} -> {limit}";
|
||||
"lng_admin_log_invite_link_usage_limit" = "Usage limit: {previous} -> {limit}";
|
||||
|
|
|
@ -1372,7 +1372,14 @@ void GenerateItems(
|
|||
};
|
||||
|
||||
const auto createChangeAvailableReactions = [&](const LogEventActionChangeAvailableReactions &data) {
|
||||
// #TODO reactions
|
||||
auto list = QStringList();
|
||||
for (const auto &emoji : data.vnew_value().v) {
|
||||
list.append(qs(emoji));
|
||||
}
|
||||
const auto text = list.isEmpty()
|
||||
? tr::lng_admin_log_reactions_disabled(tr::now, lt_from, fromLinkText)
|
||||
: tr::lng_admin_log_reactions_updated(tr::now, lt_from, fromLinkText, lt_emoji, list.join(", "));
|
||||
addSimpleServiceMessage(text);
|
||||
};
|
||||
|
||||
action.match([&](const LogTitle &data) {
|
||||
|
|
Loading…
Add table
Reference in a new issue