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:
@@ -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) |
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user