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

Put back announcement channel user listing #11518

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

nanaya
Copy link
Collaborator

@nanaya nanaya commented Sep 30, 2024

Now with limit.

The user loading flash for those with no listing permission gets a bit worse here but I think fixing it should be a different PR 🤔 added additional priv attribute to check if it should load user list

(or maybe someone can come up with better design)

Comment on lines +271 to +274
{users == null ? (
<>
<Spinner modifiers='self-center' /><span>{trans('chat.loading_users')}</span>
</>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just skip trying to load users if they don't have permission to view it anyway.
Or maybe return users: [] with the channel if they have no permission to load users and null otherwise 🤔 (or both)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll look into that... eventually...

probably not changing existing json fields though.

@notbakaneko notbakaneko merged commit 4abf984 into ppy:master Oct 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants