From e4c40158c5a8c95d6d2727247a3af183dd9a9e8d Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 3 Sep 2014 15:48:51 +0100 Subject: Snapshot prev_state for generic events --- synapse/handlers/message.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'synapse') diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index c9e3c4e451..528e77b438 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -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) -- cgit 1.4.1