discourse/plugins/chat/test/javascripts
Joffrey JAFFEUX 49a0129b0d
FIX: prevents chat to enter in endless loop when getting 404 (#18867)
Doing DOM operations in finally would cause them to happen even when the request was a failure. Consequence of these DOM operations would be new request, which would also end up in a 404, and so on.

This commit simply moves the DOM operations in the then block where it should be safe to make.
2022-11-03 19:52:44 +01:00
..
acceptance FIX: prevents chat to enter in endless loop when getting 404 (#18867) 2022-11-03 19:52:44 +01:00
components DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
helpers DEV: Move `discourse-chat` to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
integration/components/user-menu DEV: Move `discourse-chat` to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
modifiers DEV: Move `discourse-chat` to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
unit DEV: Move `discourse-chat` to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
widgets DEV: Move `discourse-chat` to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-fixtures.js DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00