mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:16:09 -04:00
pep8
This commit is contained in:
parent
b131fb1fe2
commit
091c545c4f
2 changed files with 9 additions and 9 deletions
|
@ -170,7 +170,7 @@ class SyncHandler(BaseHandler):
|
|||
for e in ephemeral_by_room[room_id]:
|
||||
if e['type'] != 'm.receipt':
|
||||
continue
|
||||
for receipt_event_id,val in e['content'].items():
|
||||
for receipt_event_id, val in e['content'].items():
|
||||
if 'm.read' in val:
|
||||
if user_id in val['m.read']:
|
||||
return receipt_event_id
|
||||
|
@ -281,7 +281,7 @@ class SyncHandler(BaseHandler):
|
|||
)
|
||||
|
||||
notifs = yield self.unread_notifs_for_room_id(
|
||||
room_id, sync_config, ephemeral_by_room
|
||||
room_id, sync_config, ephemeral_by_room
|
||||
)
|
||||
notif_count = None
|
||||
if notifs is not None:
|
||||
|
@ -830,4 +830,4 @@ class SyncHandler(BaseHandler):
|
|||
# There is no new information in this period, so your notification
|
||||
# count is whatever it was last time.
|
||||
defer.returnValue(None)
|
||||
defer.returnValue(notifs)
|
||||
defer.returnValue(notifs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue