Skip to content

ShowHiddenChannels: Fix uncategorized channels not showing category and name (#4215)#4227

Open
notchars wants to merge 2 commits into
Vendicated:mainfrom
notchars:main
Open

ShowHiddenChannels: Fix uncategorized channels not showing category and name (#4215)#4227
notchars wants to merge 2 commits into
Vendicated:mainfrom
notchars:main

Conversation

@notchars
Copy link
Copy Markdown

Fixes #4215

Updated isUncategorized function to handle both string "null" and actual null value for channel.id, as Discord likely changed how they represent uncategorized channels.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the isUncategorized function in the showHiddenChannels plugin to include a check for null channel IDs in addition to the string "null". The reviewer suggests using loose equality (== null) to handle both null and undefined cases more concisely and robustly, following the project's idiomatic style.

Comment thread src/plugins/showHiddenChannels/index.tsx Outdated
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.

[Bug] [ShowHiddenChannels] plugin does not show channel category and name.

1 participant