mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-25 19:21:27 -04:00
fix a few pyflakes errors
This commit is contained in:
parent
4b2ad549d5
commit
32347bfcc9
2 changed files with 6 additions and 7 deletions
|
@ -222,8 +222,7 @@ class MessageHandler(BaseHandler):
|
|||
if stamp_event:
|
||||
event.content["hsob_ts"] = int(self.clock.time_msec())
|
||||
|
||||
snapshot = yield self.store.snapshot_room(event.room_id, user_id)
|
||||
|
||||
snapshot = yield self.store.snapshot_room(event.room_id, event.user_id)
|
||||
|
||||
yield self.auth.check(event, snapshot, raises=True)
|
||||
|
||||
|
@ -577,8 +576,8 @@ class RoomMemberHandler(BaseHandler):
|
|||
content=content,
|
||||
)
|
||||
|
||||
snapshot = yield store.snapshot_room(
|
||||
room_id, joinee, RoomMemberEvent.TYPE, event.target_user_id
|
||||
snapshot = yield self.store.snapshot_room(
|
||||
room_id, joinee, RoomMemberEvent.TYPE, joinee
|
||||
)
|
||||
|
||||
yield self._do_join(new_event, snapshot, room_host=host, do_auth=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue