This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/chat/assets/javascripts/discourse
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
..
adapters DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
components FIX: prevents chat to enter in endless loop when getting 404 (#18867) 2022-11-03 19:52:44 +01:00
connectors DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
controllers DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
helpers DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
initializers UX: Muted style for entire chat section link when muted (#18852) 2022-11-03 08:37:39 +09:00
lib DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
models DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
modifiers/chat DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
pre-initializers DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
routes DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
services DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
templates UX: Add back button in chat browse screen on mobile (#18849) 2022-11-03 09:06:30 +01:00
widgets DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
admin-chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
preferences-chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00