mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 00:48:06 +08:00
DEV: Bump @discourse/lint-configs
and autofix (#29847)
In particular, this applies: - new `discourse/no-implicit-this` template-lint rule - `init`/`willDestroy` ordering enforcement - `lines-between-class-members`
This commit is contained in:
@ -8,6 +8,10 @@ const KEEP_ALIVE_DURATION_SECONDS = 10;
|
||||
export default class ComposerPresenceManager extends Service {
|
||||
@service presence;
|
||||
|
||||
willDestroy() {
|
||||
this.leave();
|
||||
}
|
||||
|
||||
notifyState(intent, id) {
|
||||
if (
|
||||
this.siteSettings.allow_users_to_hide_profile &&
|
||||
@ -57,8 +61,4 @@ export default class ComposerPresenceManager extends Service {
|
||||
this._presentChannel = this.presence.getChannel(channelName);
|
||||
this._presentChannel.enter();
|
||||
}
|
||||
|
||||
willDestroy() {
|
||||
this.leave();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user