fix(lint): fix import order and suppress intentional await-in-loop

This commit is contained in:
Evie Gauthier committed 2026-03-09 23:22:41 -04:00
1 parent 6d00376164
commit 1229bc0982
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -37,9 +37,9 @@ import {
resolveNotificationPreviewText,
} from '$utils/notificationStyle';
import { mobileOrTablet } from '$utils/user-agent';
import { useSlidingSyncActiveRoom } from '$hooks/useSlidingSyncActiveRoom';
import { getInboxInvitesPath } from '../pathUtils';
import { BackgroundNotifications } from './BackgroundNotifications';
import { useSlidingSyncActiveRoom } from '$hooks/useSlidingSyncActiveRoom';
function clearMediaSessionQuickly(): void {
if (!('mediaSession' in navigator)) return;
+1
View File
@@ -492,6 +492,7 @@ export class SlidingSyncManager {
} catch {
// Swallow errors — the next iteration will retry with updated ranges.
} finally {
// eslint-disable-next-line no-await-in-loop
await new Promise<void>((res) => {
setTimeout(res, gapBetweenRequestsMs);
});