fix(ui): hide report badge for non-admin users #147
Reference in New Issue
Block a user
Delete Branch "userAdityaa/flotilla:branch-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Report badges were shown as a red badge next to chat messages for all users. While helpful for admins to identify problem content, this visibility was not actionable for regular users and could lead to confrontations.
Solution
Gate the report badge rendering behind the
deriveUserIsSpaceAdmin(url)store, ensuring only space admins can see reports on messages.Fixes #139
Testing
Impact
7d02c08fc7toa414849668