Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/lib/components/fallback/Decrypt.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import YiviQRCode from '$lib/components/filesharing/YiviQRCode.svelte'
import Chip from '$lib/components/Chip.svelte'
import { isMobile } from '$lib/browser-detect'

const STATES = {
Uninit: 'Uninit',
Expand All @@ -26,6 +27,7 @@
}

let decryptState = $state(STATES.Uninit)
const isMobileDevice = isMobile()

let policies = $state()
let keylist = $state()
Expand Down Expand Up @@ -304,7 +306,11 @@
{/each}
</div>
{/if}
<YiviQRCode id="yivi-fallback" responsive />
<YiviQRCode
id="yivi-fallback"
responsive
mode={isMobileDevice ? 'deeplink' : 'qr'}
/>
</div>
{:else if decryptState === STATES.Decrypting}
<div class="spinner-wrapper">
Expand Down
Loading