mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-01 14:22:31 -08:00
chore: make quality checks happy
This commit is contained in:
4 files changed
+4
-28
No files matched your search
@@ -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": {
|
||||
|
||||
Generated
-23
@@ -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';
|
||||
|
||||
@@ -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()));
|
||||
|
||||
Reference in new issue
Block a user