diff --git a/knip.json b/knip.json index 589678200..f422e956f 100644 --- a/knip.json +++ b/knip.json @@ -9,9 +9,7 @@ "ignoreDependencies": [ "buffer", "@element-hq/element-call-embedded", - "@matrix-org/matrix-sdk-crypto-wasm", - "workbox-precaching", - "tauri-plugin-splashscreen-api" + "@matrix-org/matrix-sdk-crypto-wasm" ], "ignoreBinaries": ["knope"], "rules": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0083cefe5..a59c05e25 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3682,20 +3682,6 @@ packages: react-dom: optional: true - framer-motion@12.35.2: - resolution: {integrity: sha512-dhfuEMaNo0hc+AEqyHiIfiJRNb9U9UQutE9FoKm5pjf7CMitp9xPEF1iWZihR1q86LBmo6EJ7S8cN8QXEy49AA==} - peerDependencies: - '@emotion/is-prop-valid': '*' - react: ^18.0.0 || ^19.0.0 - react-dom: ^18.0.0 || ^19.0.0 - peerDependenciesMeta: - '@emotion/is-prop-valid': - optional: true - react: - optional: true - react-dom: - optional: true - fs-extra@9.1.0: resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==} engines: {node: '>=10'} @@ -9147,15 +9133,6 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - framer-motion@12.35.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1): - dependencies: - motion-dom: 12.35.2 - motion-utils: 12.29.2 - tslib: 2.8.1 - optionalDependencies: - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - fs-extra@9.1.0: dependencies: at-least-node: 1.0.0 diff --git a/src/app/features/settings/notifications/SystemNotification.tsx b/src/app/features/settings/notifications/SystemNotification.tsx index dae694d38..7add76d52 100644 --- a/src/app/features/settings/notifications/SystemNotification.tsx +++ b/src/app/features/settings/notifications/SystemNotification.tsx @@ -1,5 +1,5 @@ /* eslint-disable no-nested-ternary */ -import { Suspense, lazy, useCallback, useEffect, useState } from 'react'; +import { useCallback, useEffect, useState } from 'react'; import { Box, Text, Switch, Button, color, Spinner, config } from 'folds'; import { IPusherRequest } from '$types/matrix-sdk'; import { useAtom } from 'jotai'; diff --git a/src/app/pages/client/ClientNonUIFeatures.tsx b/src/app/pages/client/ClientNonUIFeatures.tsx index 90ba532f4..43b738180 100644 --- a/src/app/pages/client/ClientNonUIFeatures.tsx +++ b/src/app/pages/client/ClientNonUIFeatures.tsx @@ -48,6 +48,7 @@ import { useSlidingSyncActiveRoom } from '$hooks/useSlidingSyncActiveRoom'; import { getSlidingSyncManager } from '$client/initMatrix'; import { NotificationBanner } from '$components/notification-banner'; import { useCallSignaling } from '$hooks/useCallSignaling'; +import { isTauri } from '@tauri-apps/api/core'; import { getInboxInvitesPath } from '../pathUtils'; import { BackgroundNotifications } from './BackgroundNotifications'; @@ -124,7 +125,7 @@ function FaviconUpdater() { } else { navigator.clearAppBadge(); } - if (usePushNotifications) { + if (usePushNotifications && registration) { if (total === 0) { // All rooms read — clear every notification. registration.getNotifications().then((notifs) => notifs.forEach((n) => n.close()));