Skip to content

Commit

Permalink
Fix missing action handling in responseIsAction
Browse files Browse the repository at this point in the history
This didn't affect summary since it never came through the chat interceptor, only on initial load, but will be needed for redirect as well
  • Loading branch information
FlaminSarge committed Dec 25, 2024
1 parent 30409c9 commit cff36d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/chat-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const isValidFrameInfo = (f: Chat.UncheckedFrameInfo, port?: Chat.Port):
return check;
};

const actionTypes = new Set(['messages', 'bonk', 'delete', 'pin', 'unpin', 'playerProgress', 'forceUpdate']);
const actionTypes = new Set(['messages', 'bonk', 'delete', 'pin', 'unpin', 'summary', 'playerProgress', 'forceUpdate']);
export const responseIsAction = (r: Chat.BackgroundResponse): r is Chat.Actions =>
actionTypes.has(r.type);

Expand Down

0 comments on commit cff36d3

Please sign in to comment.