DEV: Fix `super` calls in native chat classes (#24583)
This commit is contained in:
parent
a80e32fe75
commit
b2dfc320aa
|
@ -106,7 +106,7 @@ export default class ChannelsList extends Component {
|
|||
}
|
||||
|
||||
didRender() {
|
||||
this._super(...arguments);
|
||||
super.didRender(...arguments);
|
||||
|
||||
schedule("afterRender", this._applyScrollPosition);
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -60,6 +60,7 @@ export default class ChatChannelMessageEmojiPicker extends Component {
|
|||
|
||||
@action
|
||||
willDestroy() {
|
||||
super.willDestroy(...arguments);
|
||||
this._popper?.destroy();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -40,6 +40,7 @@ export default class ChatModalCreateChannel extends Component {
|
|||
#generateSlugHandler = null;
|
||||
|
||||
willDestroy() {
|
||||
super.willDestroy(...arguments);
|
||||
cancel(this.#generateSlugHandler);
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ export default class ChatAudioManager extends Service {
|
|||
}
|
||||
|
||||
willDestroy() {
|
||||
this._super(...arguments);
|
||||
super.willDestroy(...arguments);
|
||||
|
||||
this._audioCache = {};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue