feat(ui-flow): set-activity, clear-activity, and presence activity IPC

Handle set-presence activity field plus dedicated set-activity and
clear-activity messages for the status modal Now Playing controls.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 02:37:24 -04:00
co-authored by Cursor
parent a23925b49a
commit 520927d24e
+12 -1
View File
@@ -292,7 +292,18 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
}
if (t === 'set-presence') {
const custom = msg.customStatus !== undefined ? msg.customStatus : undefined
platform.setPresence(msg.status || USER_STATUS.ONLINE, custom)
const activity = msg.activity !== undefined ? msg.activity : undefined
platform.setPresence(msg.status || USER_STATUS.ONLINE, custom, activity)
pushState()
return true
}
if (t === 'set-activity') {
platform.setActivity(msg.activity ?? null)
pushState()
return true
}
if (t === 'clear-activity') {
platform.setActivity(null)
pushState()
return true
}