Snapshot prev_state for generic events

paul/schema_breaking_changes
Erik Johnston 2014-09-03 15:48:51 +01:00
parent cda31fb755
commit e4c40158c5
1 changed files with 6 additions and 1 deletions

View File

@ -142,7 +142,12 @@ class MessageHandler(BaseRoomHandler):
SynapseError if something went wrong.
"""
snapshot = yield self.store.snapshot_room(event.room_id, event.user_id)
snapshot = yield self.store.snapshot_room(
event.room_id,
event.user_id,
state_type=event.type,
state_key=event.state_key,
)
yield self.auth.check(event, snapshot, raises=True)