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:
Loudghiri Ahmed 2023-06-12 14:48:24 +02:00 committed by GitHub
parent b7568ea4a5
commit 589add7bb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(