Skip to content

Revert "Fix pending notifications not being received after going online"#80508

Merged
arosiclair merged 1 commit into
mainfrom
revert-76932-fix/notifications-not-delivered-after-online
Jan 26, 2026
Merged

Revert "Fix pending notifications not being received after going online"#80508
arosiclair merged 1 commit into
mainfrom
revert-76932-fix/notifications-not-delivered-after-online

Conversation

@arosiclair

Copy link
Copy Markdown
Contributor

@arosiclair arosiclair self-assigned this Jan 26, 2026
@arosiclair arosiclair marked this pull request as ready for review January 26, 2026 17:59
@arosiclair arosiclair requested review from a team as code owners January 26, 2026 17:59
@melvin-bot melvin-bot Bot requested review from dangrous and joekaufmanexpensify and removed request for a team January 26, 2026 17:59
@melvin-bot

melvin-bot Bot commented Jan 26, 2026

Copy link
Copy Markdown

@dangrous Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8915f4570d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 54 to 58
return onyxDataUpdatePromise
.then(() => {
// Trigger notifications only on successful responses.
if (Platform.OS === 'web' && !isMobile() && response.jsonCode === 200 && response.onyxData?.length) {
triggerNotifications(response.onyxData);
}
// Handle the request's success/failure data (client-side data)
if (response.jsonCode === 200 && request.successData) {
return updateHandler(request.successData);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore notifications for HTTPS Onyx updates

On desktop web, notifications were previously triggered when applyHTTPSOnyxUpdates applied response.onyxData (the path used for API catch-up after reconnect/offline). Removing that call means report actions delivered via HTTPS no longer call showReportActionNotification, and notifications now only happen for Pusher updates in User.ts. The regression is visible when Pusher is disconnected or the user comes back online and the server returns missed report actions in onyxData: the UI updates, but no desktop notification fires.

Useful? React with 👍 / 👎.

@dangrous

Copy link
Copy Markdown
Contributor

Straight revert, looks clean, except for the Typescript checker. Do we just merge anyway, to keep it from getting messy?

@arosiclair arosiclair merged commit a46a523 into main Jan 26, 2026
32 of 36 checks passed
@arosiclair arosiclair deleted the revert-76932-fix/notifications-not-delivered-after-online branch January 26, 2026 19:15
@melvin-bot melvin-bot Bot added the Emergency label Jan 26, 2026
@melvin-bot

melvin-bot Bot commented Jan 26, 2026

Copy link
Copy Markdown

@arosiclair looks like this was merged without a test passing. Please add a note explaining why this was done and remove the Emergency label if this is not an emergency.

@arosiclair

Copy link
Copy Markdown
Contributor Author

Straight revert and typescript checks are failing on main

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/arosiclair in version: 9.3.9-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.9-2 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

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.

3 participants