chore: make quality checks happy

This commit is contained in:
hazre committed 2026-03-12 20:21:29 +01:00
1 parent 8667938e54
commit abfaab5cf6
4 files changed
+4 -28

No files matched your search

+1 -3
View File
@@ -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": {
-23
View File
@@ -3682,20 +3682,6 @@ packages:
react-dom:
optional: true
[email protected]:
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
[email protected]:
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([email protected])
[email protected]([email protected]([email protected]))([email protected]):
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([email protected])
[email protected]:
dependencies:
at-least-node: 1.0.0
@@ -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';
+2 -1
View File
@@ -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()));