diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-02-10 17:58:36 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-02-10 17:58:36 +0000 |
commit | 84a769cdb7321481954c386a040d7e7ff504d02b (patch) | |
tree | b0514f19b1f44c01d2e88a188c1a764299185c0c /synapse/handlers/presence.py | |
parent | Log all the exits from _attempt_new_transaction (diff) | |
download | synapse-84a769cdb7321481954c386a040d7e7ff504d02b.tar.xz |
Fix code-style
Diffstat (limited to 'synapse/handlers/presence.py')
-rw-r--r-- | synapse/handlers/presence.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index 6a266ee0fe..59287010ed 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -457,9 +457,9 @@ class PresenceHandler(BaseHandler): if state is None: state = yield self.store.get_presence_state(user.localpart) else: -# statuscache = self._get_or_make_usercache(user) -# self._user_cachemap_latest_serial += 1 -# statuscache.update(state, self._user_cachemap_latest_serial) + # statuscache = self._get_or_make_usercache(user) + # self._user_cachemap_latest_serial += 1 + # statuscache.update(state, self._user_cachemap_latest_serial) pass yield self.push_update_to_local_and_remote( @@ -709,7 +709,7 @@ class PresenceHandler(BaseHandler): # TODO(paul) permissions checks - if not user in self._remote_sendmap: + if user not in self._remote_sendmap: self._remote_sendmap[user] = set() self._remote_sendmap[user].add(origin) |