-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
Remove direct usages of TabSupervisor from Chatview #2501
Conversation
071bd0d
to
52ac78e
Compare
if (getAttentionList.contains(message) && (userLevel & ServerInfo_User::IsModerator || userLevel & ServerInfo_User::IsAdmin)) | ||
return true; | ||
return (getAttentionList.contains(message) | ||
&& (userLevel & ServerInfo_User::IsModerator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can just return isModerator as isAdmin is a higher level that will return the same thing anyway.
is Admin implies is Moderator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Planning on adding a userlistProxy->isOwnUserModerator()
@ctrlaltca Can you explain what is wrong here or how I can fix this if it's not an issue?
|
- There still might be inherited usages - It's still used in the ctor Areas to test - Mentions - Chat notifications - Username clickable links
957690a
to
a3f4012
Compare
8904aa3
to
f5a5ea0
Compare
Areas to test