summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/events.py1
-rw-r--r--synapse/handlers/room.py12
2 files changed, 9 insertions, 4 deletions
diff --git a/synapse/handlers/events.py b/synapse/handlers/events.py
index b336b292d3..e08231406d 100644
--- a/synapse/handlers/events.py
+++ b/synapse/handlers/events.py
@@ -59,7 +59,6 @@ class EventStreamHandler(BaseHandler):
                     )
             self._streams_per_user[auth_user] += 1
 
-
             if pagin_config.from_token is None:
                 pagin_config.from_token = None
 
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index 19ade10a91..bf66d74548 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -311,12 +311,18 @@ class MessageHandler(BaseHandler):
                     "end": token[1],
                 }
 
-                current_state = yield self.store.get_current_state(event.room_id)
+                current_state = yield self.store.get_current_state(
+                    event.room_id
+                )
                 d["state"] = [c.get_dict() for c in current_state]
             except:
                 logger.exception("Failed to get snapshot")
 
-        ret = {"rooms": rooms_ret, "presence": presence, "end": now_token.to_string()}
+        ret = {
+            "rooms": rooms_ret,
+            "presence": presence,
+            "end": now_token.to_string()
+        }
 
         defer.returnValue(ret)
 
@@ -499,7 +505,7 @@ class RoomMemberHandler(BaseHandler):
             for entry in member_list
         ]
         chunk_data = {
-            "start": "START",  # FIXME (erikj): START is no longer a valid value
+            "start": "START",  # FIXME (erikj): START is no longer valid
             "end": "END",
             "chunk": event_list
         }