feat(bridge): Discord badge on bridged users and a header chip on bridged rooms #479
No Reviewers
Labels
Clear labels
a11y
area: appearance
area: auth-session
area: build-ci
area: calls
area: desktop
area: media
area: messaging
area: mobile
area: moderation
area: navigation
area: notifications
area: settings
area: threads
bug
dependencies
docs
duplicate
enhancement
help wanted
invalid
needs-human-review
performance
planning
priority: critical
priority: high
priority: low
priority: medium
qa
question
research
security
tech-debt
ux
wontfix
Accessibility: keyboard, screen reader, contrast, motion
Client area: appearance
Client area: auth-session
Client area: build-ci
Client area: calls
Client area: desktop
Client area: media
Client area: messaging
Client area: mobile
Client area: moderation
Client area: navigation
Client area: notifications
Client area: settings
Client area: threads
Something is not working
Third-party package versions and advisories
README / LOTUS_* docs wrong or missing
This issue or pull request already exists
New feature
Need some help
Something is wrong
Re-render storms, leaks, heavy work on hot paths
Data loss, security hole, or crash on a main path
Broken feature or serious usability problem
Minor issue or polish
Wrong behaviour in an edge case or notable degradation
Manual QA: shipped, needs a human in a real environment
More information is needed
XSS, unsafe URLs, data leaks, auth/session
Code health, dead code, fragile patterns
Usability or visual inconsistency
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: LotusGuild/cinny#479
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Now that the mautrix-discord bridge is live (matrix #44), it's hard to tell who in a bridged room is actually on Discord. This adds:
@discord_<snowflake>:user IDs. The bridge bot (@discordbot) and look-alikes such as@discord_fanor@discord-relayare not matched.m.bridge/uk.half-shot.bridgestate event (protocoldiscordgo). Its tooltip names the channel and server ("Bridged to #general in Lotus Guild on Discord"), and clicking it opens the channel in Discord. The link is used only if it is http(s), because anyone with state power in the room controls that value.Code:
utils/bridge.ts, with unit tests: ghost detection,m.bridgeparsing, merging with the unstable copy, link sanitising.hooks/useRoomBridges.ts: live updates on bridge state changes.components/bridge/BridgeBadge.tsx: the Discord glyph from simple-icons, in Discord blurple.Tested: against the local homeserver with a bridged room (real mautrix-discord
m.bridgecontent) and a@discord_…member. All four placements render, the chip links to the channel, and there are no page errors. Unit tests: 1453 pass, 0 fail. Typecheck, eslint and prettier are clean.🤖 Generated with Claude Code
https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5