mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Snapshot prev_state for generic events
This commit is contained in:
parent
cda31fb755
commit
e4c40158c5
@ -142,7 +142,12 @@ class MessageHandler(BaseRoomHandler):
|
|||||||
SynapseError if something went wrong.
|
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)
|
yield self.auth.check(event, snapshot, raises=True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user