mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix incorrect admin log
Type: Restricted to Left
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user