A platform for community discussion. Free, open, simple.
FIX: cancels fetching messages when pane is destroyed (#19642)
Joffrey JAFFEUX8a792bdf0b79
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-live-pane.js b/plugins/chat/assets/javascripts/discourse/components/chat-live-pane.jsindex 8b01739743b..ef2ab7639c7 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-live-pane.js+++ b/plugins/chat/assets/javascripts/discourse/components/chat-live-pane.js@@ -229,6 +229,10 @@ export default Component.extend({@debounce(100)fetchMessages(channel, options = {}) {+ if (this._selfDeleted) {+ return;+ }+this.set("loading", true);return this.chat.loadCookFunction(this.site.categories).then((cook) => {