From b015e23b513e9f9c7b71bffdaf48b35810e042f4 Mon Sep 17 00:00:00 2001 From: Lee Wise Date: Tue, 11 Jul 2023 11:24:25 -0500 Subject: [PATCH] Add setPresence to auto on clearStatus --- src/main.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 76b4967..cf30da8 100644 --- a/src/main.ts +++ b/src/main.ts @@ -93,15 +93,20 @@ const changeStatus = async (settings: Settings) => { const clearStatus = async (settings: Settings) => { const { apiToken } = settings - const data = { + const dataProfile = { profile: { status_emoji: '', status_text: '', status_expiration: 0, }, } - const response = await setProfile(apiToken, data) - console.log(response) + const dataPresence = { + presence: 'auto', + } + const profileResponse = await setProfile(apiToken, dataProfile) + console.log(profileResponse) + const presenceResponse = await setPresence(apiToken, dataPresence) + console.log(presenceResponse) } ;(window as any)['connectElgatoStreamDeckSocket'] = connectElgatoStreamDeckSocket