Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-background-sync-resume.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
default: patch
---

Fix new messages not arriving on mobile until the app was restarted, after it had been in the background.
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ export async function listenForUnifiedPushMessages(getSettings: () => Notificati
const listener = await addPluginListener('notifications', 'push-message', (data: unknown) => {
const notification = parseUnifiedPushMessage(data);
if (!notification) return;
getSlidingSyncManager(getSettings().mx)?.resumeForPush();
getSlidingSyncManager(getSettings().mx)?.requestPushDrain();
dispatch(notification);
});

Expand Down
151 changes: 0 additions & 151 deletions src/app/hooks/useBackgroundSyncPause.test.tsx

This file was deleted.

50 changes: 0 additions & 50 deletions src/app/hooks/useBackgroundSyncPause.ts

This file was deleted.

Loading
Loading