Skip to content

fix(apple): Process update notifications on main thread only#8248

Merged
jamilbk merged 3 commits into
mainfrom
fix/only-show-notifications-on-main-thread
Feb 24, 2025
Merged

fix(apple): Process update notifications on main thread only#8248
jamilbk merged 3 commits into
mainfrom
fix/only-show-notifications-on-main-thread

Conversation

@jamilbk

@jamilbk jamilbk commented Feb 24, 2025

Copy link
Copy Markdown
Member

@Published properties that views subscribe to for UI updates need to be updated from the main thread only. This PR annotates the relevant variable and function from the original author's implementation with @MainActor so that Swift will properly warn us when modifying these in the future.

@vercel

vercel Bot commented Feb 24, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
firezone ❌ Failed (Inspect) Feb 24, 2025 6:47pm

@sentry

sentry Bot commented Feb 24, 2025

Copy link
Copy Markdown

Sentry Issue: APPLE-CLIENT-2T

@jamilbk

jamilbk commented Feb 24, 2025

Copy link
Copy Markdown
Member Author

This looks to be a widespread issue that was uncovered with the state simplification. The bug was always there but was masked by double-binding to the updateAvailable bool.

Merging to get 1.4.5 out ASAP.

@jamilbk
jamilbk enabled auto-merge February 24, 2025 18:46
@jamilbk
jamilbk disabled auto-merge February 24, 2025 18:46
@jamilbk
jamilbk merged commit 4defd96 into main Feb 24, 2025
@jamilbk
jamilbk deleted the fix/only-show-notifications-on-main-thread branch February 24, 2025 18:46
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