mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
Before this commit, presence used get_realm_count() to determine whether a realm was "small" (and thus should show all human users in the buddy list, even humans that had not been active in a while). The `get_realm_count` function--despite a very wrong, misleading comment--was including bots in its count. The new function truly counts only active humans (and no bots). Because we were overcounting users before this change, we should technically adjust `BIG_REALM_COUNT` down by some amount to reflect our original intention there on the parameter. I'm leaving it alone for now, though, since we've improved the performance of the buddy list over time, and it's probably fine if a few "big" realms get re-classified as small realms (and show more users) by virtue of this change. (Also note that this cutoff value only affects the "normal" view of the buddy list; both small realms and large realms will show long-inactive users if you do searches.) Fixes #14215
6.3 KiB
6.3 KiB