pass room version into FederationClient.send_join (#6854)

... which allows us to sanity-check the create event.
This commit is contained in:
Richard van der Hoff 2020-02-06 15:50:39 +00:00 committed by GitHub
parent bce557175b
commit b0c8bdd49d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 30 deletions

View file

@ -1305,9 +1305,8 @@ class FederationHandler(BaseHandler):
except ValueError:
pass
event_format_version = room_version_obj.event_format
ret = await self.federation_client.send_join(
target_hosts, event, event_format_version
target_hosts, event, room_version_obj
)
origin = ret["origin"]