mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-02 11:06:06 -04:00
Only check event ID domain for signatures for V1 events
In future version events won't have an event ID, so we won't be able to do this check.
This commit is contained in:
parent
8e3d34e3c5
commit
840068bd78
3 changed files with 44 additions and 31 deletions
|
@ -645,9 +645,12 @@ class FederationServer(FederationBase):
|
|||
pdu.event_id, origin
|
||||
)
|
||||
|
||||
# We've already checked that we know the room version by this point
|
||||
room_version = yield self.store.get_room_version(pdu.room_id)
|
||||
|
||||
# Check signature.
|
||||
try:
|
||||
pdu = yield self._check_sigs_and_hash(pdu)
|
||||
pdu = yield self._check_sigs_and_hash(room_version, pdu)
|
||||
except SynapseError as e:
|
||||
raise FederationError(
|
||||
"ERROR",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue