FIX: use `_presentChannels.size` instead of `_presentChannels.length` (#22053)
`_presentChannels` is a Set, not an Array. Previously this `else if` condition would never be hit.
This commit is contained in:
parent
b7568ea4a5
commit
589add7bb5
|
@ -606,7 +606,7 @@ export default class PresenceService extends Service {
|
|||
);
|
||||
} else if (
|
||||
!this._nextUpdateTimer &&
|
||||
this._presentChannels.length > 0 &&
|
||||
this._presentChannels.size > 0 &&
|
||||
!isTesting()
|
||||
) {
|
||||
this._nextUpdateTimer = discourseLater(
|
||||
|
|
Loading…
Reference in New Issue