diff --git a/plugins/chat/assets/javascripts/discourse/components/channels-list.gjs b/plugins/chat/assets/javascripts/discourse/components/channels-list.gjs index 7f7bea1227d..44114c8fb61 100644 --- a/plugins/chat/assets/javascripts/discourse/components/channels-list.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/channels-list.gjs @@ -106,7 +106,7 @@ export default class ChannelsList extends Component { } didRender() { - this._super(...arguments); + super.didRender(...arguments); schedule("afterRender", this._applyScrollPosition); } diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-browse-view.js b/plugins/chat/assets/javascripts/discourse/components/chat-browse-view.js index fbccb8b217d..2e5200dbc17 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-browse-view.js +++ b/plugins/chat/assets/javascripts/discourse/components/chat-browse-view.js @@ -16,7 +16,7 @@ export default class ChatBrowseView extends Component { tagName = ""; didReceiveAttrs() { - this._super(...arguments); + super.didReceiveAttrs(...arguments); if (!this.channelsCollection) { this.set("channelsCollection", this.chatApi.channels()); diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel-message-emoji-picker.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-channel-message-emoji-picker.gjs index 05c7abd73fc..595bfdf6195 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-channel-message-emoji-picker.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel-message-emoji-picker.gjs @@ -60,6 +60,7 @@ export default class ChatChannelMessageEmojiPicker extends Component { @action willDestroy() { + super.willDestroy(...arguments); this._popper?.destroy(); } diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-vh.js b/plugins/chat/assets/javascripts/discourse/components/chat-vh.js index d450a4f3fb2..d6ceb02b86e 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-vh.js +++ b/plugins/chat/assets/javascripts/discourse/components/chat-vh.js @@ -12,7 +12,7 @@ export default class ChatVh extends Component { tagName = ""; didInsertElement() { - this._super(...arguments); + super.didInsertElement(...arguments); if ("virtualKeyboard" in navigator) { navigator.virtualKeyboard.overlaysContent = true; @@ -25,7 +25,7 @@ export default class ChatVh extends Component { } willDestroyElement() { - this._super(...arguments); + super.willDestroyElement(...arguments); this.activeWindow?.removeEventListener("resize", this.setVH); lastVH = null; diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/modal/create-channel.js b/plugins/chat/assets/javascripts/discourse/components/chat/modal/create-channel.js index b3fb414a83d..5fbf513868c 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat/modal/create-channel.js +++ b/plugins/chat/assets/javascripts/discourse/components/chat/modal/create-channel.js @@ -40,6 +40,7 @@ export default class ChatModalCreateChannel extends Component { #generateSlugHandler = null; willDestroy() { + super.willDestroy(...arguments); cancel(this.#generateSlugHandler); } diff --git a/plugins/chat/assets/javascripts/discourse/services/chat-audio-manager.js b/plugins/chat/assets/javascripts/discourse/services/chat-audio-manager.js index 44e47030d88..0c676d2b86d 100644 --- a/plugins/chat/assets/javascripts/discourse/services/chat-audio-manager.js +++ b/plugins/chat/assets/javascripts/discourse/services/chat-audio-manager.js @@ -34,7 +34,7 @@ export default class ChatAudioManager extends Service { } willDestroy() { - this._super(...arguments); + super.willDestroy(...arguments); this._audioCache = {}; }