fix(share): room share and invite links open Lotus Chat, not matrix.to (#285) #384

Merged
jared merged 1 commits from fix/share-links-lotus into lotus 2026-10-17 23:50:19 -04:00
Owner

Fixes #285.

matrix.to can't send anyone to this deployment: its Cinny adapter is hard-coded to app.cinny.in, and web-instance[] only works for Element. So a friend scanning a room's QR or clicking an invite link was offered Element or app.cinny.in, not Lotus Chat.

Change

  • Share Room (link and Download QR) and the Invite dialog (Copy Link and QR) now use the Lotus permalink. That's getLotusRoomPermalink / getLotusSpacePermalink with useLotusShareBase(), which is correct on desktop via webAppUrl.
  • The space menus already offer both Copy Link (matrix.to, for people on other clients) and Copy Lotus Link; unchanged.

Verified (acceptance criteria):

  • The Invite dialog's QR, decoded with jsQR, gives …/home/!YosSHLDUmvCRsviVAq%3Alocalhost?viaServers=localhost. On prod the base is chat.lotusguild.org.
  • A logged-out visitor opening that link is sent to login, and after logging in lands in the room.

tsc clean · unit tests pass · ESLint clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5

Fixes #285. matrix.to can't send anyone to this deployment: its Cinny adapter is hard-coded to app.cinny.in, and `web-instance[]` only works for Element. So a friend scanning a room's QR or clicking an invite link was offered Element or app.cinny.in, not Lotus Chat. **Change** - **Share Room** (link and Download QR) and the **Invite** dialog (Copy Link and QR) now use the Lotus permalink. That's `getLotusRoomPermalink` / `getLotusSpacePermalink` with `useLotusShareBase()`, which is correct on desktop via `webAppUrl`. - The space menus already offer both **Copy Link** (matrix.to, for people on other clients) and **Copy Lotus Link**; unchanged. **Verified** (acceptance criteria): - The Invite dialog's QR, decoded with jsQR, gives `…/home/!YosSHLDUmvCRsviVAq%3Alocalhost?viaServers=localhost`. On prod the base is chat.lotusguild.org. - A logged-out visitor opening that link is sent to login, and after logging in lands **in the room**. `tsc` clean · unit tests pass · ESLint clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5
jared added 1 commit 2026-10-17 20:00:01 -04:00
fix(share): room share and invite links open Lotus Chat, not matrix.to (#285)
CI / Build & Quality Checks (pull_request) Successful in 2m49s
CI / Trigger Desktop Build (pull_request) Skipped
CI / Docker image build & smoke test (pull_request) Skipped
CI / Secret scan (gitleaks) (pull_request) Successful in 12s
CI / Playwright smoke (e2e) (pull_request) Successful in 17m6s
e16c923bea
matrix.to can't send anyone to this deployment (its Cinny adapter is
app.cinny.in, web-instance[] is Element-only), so a friend scanning a
room QR or clicking an invite link was offered Element or app.cinny.in.
Share Room (link + QR) and the Invite dialog (link + QR) now use the
Lotus permalink (correct on desktop via webAppUrl). The space menus
keep both "Copy Link" (matrix.to, for other clients) and "Copy Lotus Link".

Fixes #285

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5
jared merged commit e6e52cdc37 into lotus 2026-10-17 23:50:19 -04:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/cinny#384