Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix restrict user in recent actions #28395

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Conversation

c0re100
Copy link
Contributor

@c0re100 c0re100 commented Sep 11, 2024

Cause if (const auto since = participant.restrictedSince()) is always false when user is not restricted,
restrictedSince() return 0
then EditRestrictedBox wouldn't pop up.

@23rd
Copy link
Collaborator

23rd commented Sep 12, 2024

Not else but else if (participant.type() == Type::Restricted || participant.type() == Type::Banned) (see 686e964).

But still you are right.

UPD: oops, I’m wrong. The pull request is good.

@23rd 23rd merged commit 0960a3b into telegramdesktop:dev Sep 19, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants