mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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
Block a user