Tags: kwaroran/RisuAI
Tags
fix: Guest account can't access alerts properly (#875) # PR Checklist - [ ] Have you checked if it works normally in all models? *Ignore this if it doesn't use models.* - [x] Have you checked if it works normally in all web, local, and node hosted versions? If it doesn't, have you blocked it in those versions? - [x] Have you added type definitions? # Description  When an user is not logged in and anytime any dialog is about to open, undefined property access of `message` event happens, opening error dialog, which causes another undefined property access, and so forth. This does not stop so it blocks even log in itself. This PR mitigates it by simply converting those accesses to optional chaining.
PreviousNext