mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Version 1.7.10: Ownership transfer in admin log.
This commit is contained in:
@@ -264,7 +264,7 @@ auto GenerateParticipantChangeTextInner(
|
||||
const auto oldType = oldParticipant ? oldParticipant->type() : 0;
|
||||
return participant.match([&](const MTPDchannelParticipantCreator &data) {
|
||||
// No valid string here :(
|
||||
return tr::lng_admin_log_invited(
|
||||
return tr::lng_admin_log_transferred(
|
||||
tr::now,
|
||||
lt_user,
|
||||
GenerateUserString(data.vuser_id),
|
||||
@@ -575,6 +575,12 @@ void GenerateItems(
|
||||
};
|
||||
|
||||
auto createParticipantToggleAdmin = [&](const MTPDchannelAdminLogEventActionParticipantToggleAdmin &action) {
|
||||
if (action.vnew_participant.type() == mtpc_channelParticipantAdmin
|
||||
&& action.vprev_participant.type() == mtpc_channelParticipantCreator) {
|
||||
// In case of ownership transfer we show that message in
|
||||
// the "User > Creator" part and skip the "Creator > Admin" part.
|
||||
return;
|
||||
}
|
||||
auto bodyFlags = Flag::f_entities | Flag::f_from_id;
|
||||
auto bodyReplyTo = 0;
|
||||
auto bodyViaBotId = 0;
|
||||
|
Reference in New Issue
Block a user