feat(ipc): add refresh-notifications handler for empty inbox UI

Re-push view state when the notifications modal Refresh control is used.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-23 03:30:28 -04:00
co-authored by Cursor
parent ac8083216e
commit 42fda37fe6
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -48,6 +48,7 @@ Returns `false` for unknown types (caller may log).
| Boosts / stickers | `contribute-guild-boost`, `upsert-guild-sticker`, `upsert-sticker-pack` |
| Profile | `update-profile-cosmetics`, `set-profile-banner-image`, step-up PIN types |
| Voice / screen | `join-voice`, `voice-capture-chunk`, `display-capture-frame` |
| Notifications | `mark-all-notifications-read`, `refresh-notifications` (v0.8.236) |
| Workers | `export-integration-worker-script`, `run-worker-install-trial`, `announce-worker-release` |
| Moderation / channels | `ban-member`, `upsert-channel-overwrite`, forum/thread types |
| Search | `update-search`, `refresh-search`, `remove-search-recent` (v0.8.140) |
+4
View File
@@ -1212,6 +1212,10 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState()
return true
}
if (t === 'refresh-notifications') {
pushState()
return true
}
if (t === 'create-device-pair-code') {
const invite = await platform.createDevicePairCode({
deviceLabel: msg.deviceLabel,