This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor _filter_all_presence_updates_for_user; always filter through PR
This commit refactors _filter_all_presence_updates_for_user a little bit to allow taking from_key as an optional parameter. The advantage of this function is that we filter presence updates through PresenceRouter. Turns out we had a code path (no from_key, return presence for ALL users) that ended up not filtering through PresenceRouter. Having both code paths end in _filter_all_presence_updates_for_user not only makes things a little easier to follow, but it ensures filtering always happens. I also took the bit where we remove the user from ModuleApi.send_full_presence_to_local_users out of _filter_all_presence_updates_for_user to clean it up a bit further.
- Loading branch information
1 parent
6fae9f3
commit 2f16ed0
Showing
1 changed file
with
38 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters