diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-09-09 18:51:22 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-09-09 18:51:22 +0100 |
commit | 3ddec016ffe5a624673b5c5d9573fb11851963b9 (patch) | |
tree | 798cf69b1aeeffb673a0aaad2a2a869f1224ebd6 /synapse/handlers/presence.py | |
parent | Allow clients to supply access_tokens as headers (diff) | |
parent | Merge pull request #1096 from matrix-org/markjh/get_access_token (diff) | |
download | synapse-3ddec016ffe5a624673b5c5d9573fb11851963b9.tar.xz |
Merge branch 'develop' into markjh/bearer_token
Diffstat (limited to 'synapse/handlers/presence.py')
-rw-r--r-- | synapse/handlers/presence.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index 7a3c16a8aa..16dbddee03 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -265,6 +265,12 @@ class PresenceHandler(object): to_notify = {} # Changes we want to notify everyone about to_federation_ping = {} # These need sending keep-alives + # Only bother handling the last presence change for each user + new_states_dict = {} + for new_state in new_states: + new_states_dict[new_state.user_id] = new_state + new_state = new_states_dict.values() + for new_state in new_states: user_id = new_state.user_id |