Skip to content

refactor(roles): drop unused USER and SUBSCRIBER entries#837

Merged
11k merged 1 commit into
masterfrom
refactor/prune-user-role-enum
Jun 5, 2026
Merged

refactor(roles): drop unused USER and SUBSCRIBER entries#837
11k merged 1 commit into
masterfrom
refactor/prune-user-role-enum

Conversation

@11k

@11k 11k commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes the unused USER and SUBSCRIBER entries from the roles enum in assets/chat/js/roles.js. These role keys were not referenced anywhere in the chat-gui codebase, leaving the enum with the meaningful, actively-used roles (ADMIN, MODERATOR, HOST, etc.).

Changes

  • Drop USER: 'USER' and SUBSCRIBER: 'SUBSCRIBER' from the default roles export.

Test plan

  • Verified no remaining references to the removed role keys in the codebase.

Neither is referenced anywhere — User.isSubscriber() checks
UserFeature.SUBSCRIBER, and login state is tracked outside the
roles map. Matches the website-side enum cleanup that stops shipping
"USER"/"SUBSCRIBER" in the user.roles payload.
@11k 11k added the refactor label May 28, 2026
@11k 11k merged commit 513249d into master Jun 5, 2026
2 checks passed
@11k 11k deleted the refactor/prune-user-role-enum branch June 5, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant