fix(lint): fix import order and suppress intentional await-in-loop
This commit is contained in:
1 parent
6d00376164
commit
1229bc0982
2 files changed
+2
-1
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user