diff --git a/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp b/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp index 09c0e62ca9..c795493db3 100644 --- a/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp +++ b/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp @@ -483,7 +483,10 @@ auto GenerateParticipantChangeText( user, ChatRestrictionsInfo(), oldRestrictions); - } else if (oldParticipant && oldParticipant->type() == Type::Restricted && participant.type() == Type::Member) { + } else if (oldParticipant + && oldParticipant->type() == Type::Restricted + && (participant.type() == Type::Member + || participant.type() == Type::Left)) { return GeneratePermissionsChangeText( participantId, user,