mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-21 04:25:27 -04:00
[PR #122] [MERGED] fix: missing undefined check on policy_changes #118
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/stoatchat/javascript-client-sdk/pull/122
Author: @amycatgirl
Created: 11/17/2025
Status: ✅ Merged
Merged: 1/1/2026
Merged by: @reeesespuffs
Base:
main← Head:fix/missing-policy📝 Commits (2)
83b3be3feat: add nix shell74e02d4fix: missing undefined check in policy_changes📊 Changes
2 files changed (+20 additions, -1 deletions)
View changed files
➕
default.nix(+19 -0)📝
src/events/v1.ts(+1 -1)📄 Description
Bots do not receive policy changes on their ready event because they do not have to ACK new changes like users do. However, the event handler code does not check for this and causes bots using stoat.js to crash.
This PR is stacked on top of #121
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.