Project-Pandora-Game / pandora

https://project-pandora.com
Other
11 stars 3 forks source link

[FIX] Allow parsing links in DMs #797

Closed Jomshir98 closed 2 weeks ago

Jomshir98 commented 2 weeks ago

References

None

About The Pull Request

This PR fixes an issue that caused _ characters to be eaten by formatting, even inside links in DMs. Also improves how are invites through DMs handled by showing more detailed errors and allowing invite's author to always resolve it, if it is still valid. Also fixes invalid message warning when invite is read inside DM without a selected character. Also fixes click events bubbling outside of modal dialogs (usually clicking the button that opened them and closing them immediately, no matter where you click).

Changelog

Fixes:
- Links sent through DMs (notably space invites) no longer get randomly split in half and thus broken
- Invalid space invitations sent through DMs and/or normal chat now display more detailed message about why they are invalid
- Clicking empty space inside invitation details dialog no longer closes it (also fixes other modal dialogs that had this problem)

Checklist