Skip to content

Fix notifications not refreshing on app resume#83

Merged
barrydeen merged 1 commit intomainfrom
fix/notification-reconnect
Feb 28, 2026
Merged

Fix notifications not refreshing on app resume#83
barrydeen merged 1 commit intomainfrom
fix/notification-reconnect

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • subscribeDmsAndNotifications() was only called on force reconnects (pause >= 30s), so returning from a short pause while on the notifications screen showed stale data
  • Moved the call outside the if (force) block so notifications and DMs re-subscribe on every app resume, matching the feed's behavior

Test plan

  • Open notifications screen, minimize app for < 30s, reopen — notifications should refresh
  • Open notifications screen, minimize app for > 30s, reopen — notifications should refresh
  • Open feed screen, minimize and reopen — feed still refreshes as before

subscribeDmsAndNotifications() was only called on force reconnects
(pause >= 30s), so returning from a short pause while on the
notifications screen left stale data. Move the call outside the
force-only block so it runs on every reconnect, matching feed behavior.
@barrydeen barrydeen merged commit ab9f4b0 into main Feb 28, 2026
@barrydeen barrydeen deleted the fix/notification-reconnect branch March 4, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant