Add a couple of actions log phrases for channels.

This commit is contained in:
John Preston 2017-07-12 16:34:13 +03:00
parent 38a53687a0
commit c79561e97f
2 changed files with 4 additions and 2 deletions

View File

@ -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}";

View File

@ -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);
};