feat(rooms): read-only announcement channels (LC-480) #462
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/LC-480-announcement-channels"
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?
What
Surface read-only announcement channels (LC-480). The backend already gated posting via
rooms.posting_allowed_for(all/moderators_only/admins_only, reactions unaffected), so this PR is the UX layer that makes restricted rooms read as announcement channels.Changes
posting_locked_reason(RoomPage now carries the rawposting_policyand the template maps it to|tstrings).No new routes, data, or policy values - purely presentation + i18n on top of the existing policy.
Tests
New render test in
routes_readonly_rooms.rs: a member of an admins-only room sees the banner + read-only notice with the react hint; the admin sees the banner but keeps the composer.just check,just test,just test-saasall green (ranjust checkafter the final edit).Verify
just verifybuilds the release binary clean; boot fails only on the missing mandatory SSO env (environmental, as in prior PRs).