mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-17 12:20:15 -04:00
Disable presence
This reverts commit 0ebd376a53
and
disables presence a bit more
This commit is contained in:
parent
66dcbf47a3
commit
43bb12e640
6 changed files with 14 additions and 7 deletions
|
@ -391,6 +391,7 @@ class PresenceHandler(object):
|
|||
"""We've seen the user do something that indicates they're interacting
|
||||
with the app.
|
||||
"""
|
||||
return
|
||||
user_id = user.to_string()
|
||||
|
||||
bump_active_time_counter.inc()
|
||||
|
@ -420,6 +421,7 @@ class PresenceHandler(object):
|
|||
Useful for streams that are not associated with an actual
|
||||
client that is being used by a user.
|
||||
"""
|
||||
affect_presence = False
|
||||
if affect_presence:
|
||||
curr_sync = self.user_to_num_current_syncs.get(user_id, 0)
|
||||
self.user_to_num_current_syncs[user_id] = curr_sync + 1
|
||||
|
@ -465,6 +467,7 @@ class PresenceHandler(object):
|
|||
Returns:
|
||||
set(str): A set of user_id strings.
|
||||
"""
|
||||
return set()
|
||||
syncing_user_ids = {
|
||||
user_id for user_id, count in self.user_to_num_current_syncs.items()
|
||||
if count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue