diff --git a/src/app/components/invite-user-prompt/InviteUserPrompt.tsx b/src/app/components/invite-user-prompt/InviteUserPrompt.tsx index c9bab43a0..4e96d985f 100644 --- a/src/app/components/invite-user-prompt/InviteUserPrompt.tsx +++ b/src/app/components/invite-user-prompt/InviteUserPrompt.tsx @@ -33,6 +33,7 @@ import { import { Room } from 'matrix-js-sdk'; import { isKeyHotkey } from 'is-hotkey'; import FocusTrap from 'focus-trap-react'; +import { QRCodeSVG } from 'qrcode.react'; import { stopPropagation } from '../../utils/keyboard'; import { useDirectUsers } from '../../hooks/useDirectUsers'; import { @@ -237,13 +238,25 @@ export function InviteUserPrompt({ room, requestClose }: InviteUserProps) { borderBottom: `1px solid ${color.Surface.ContainerLine}`, }} > - QR code for room invite link + {/* Generated locally (qrcode.react) like RoomShareInvite — the + old api.qrserver.com leaked the room link to a third + party and is blocked by the prod CSP img-src anyway + (Gitea #192). White quiet-zone so it scans on any theme. */} + + +