mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-13 18:47:19 +00:00
Add a couple of actions log phrases for channels.
This commit is contained in:
parent
38a53687a0
commit
c79561e97f
@ -1371,7 +1371,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||
"lng_admin_log_previous_message" = "Original message";
|
||||
"lng_admin_log_deleted_message" = "{from} deleted message:";
|
||||
"lng_admin_log_participant_joined" = "{from} joined the group";
|
||||
"lng_admin_log_participant_joined_channel" = "{from} joined the channel";
|
||||
"lng_admin_log_participant_left" = "{from} left the group";
|
||||
"lng_admin_log_participant_left_channel" = "{from} left the channel";
|
||||
"lng_admin_log_invited" = "invited {user}";
|
||||
"lng_admin_log_banned" = "banned {user}";
|
||||
"lng_admin_log_restricted" = "changed restrictions for {user} {until}";
|
||||
|
@ -377,12 +377,12 @@ void GenerateItems(gsl::not_null<History*> history, LocalIdManager &idManager, c
|
||||
};
|
||||
|
||||
auto createParticipantJoin = [&]() {
|
||||
auto text = lng_admin_log_participant_joined(lt_from, fromLinkText);
|
||||
auto text = (channel->isMegagroup() ? lng_admin_log_participant_joined : lng_admin_log_participant_joined_channel)(lt_from, fromLinkText);
|
||||
addSimpleServiceMessage(text);
|
||||
};
|
||||
|
||||
auto createParticipantLeave = [&]() {
|
||||
auto text = lng_admin_log_participant_left(lt_from, fromLinkText);
|
||||
auto text = (channel->isMegagroup() ? lng_admin_log_participant_left : lng_admin_log_participant_left_channel)(lt_from, fromLinkText);
|
||||
addSimpleServiceMessage(text);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user