mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-03 10:40:53 -05:00
Merge pull request #3616 from matrix-org/travis/event_id_send_leave
Update the send_leave path to be an event_id
This commit is contained in:
commit
d42455cdc9
1
changelog.d/3616.misc
Normal file
1
changelog.d/3616.misc
Normal file
@ -0,0 +1 @@
|
||||
Update the /send_leave path registration to use event_id rather than a transaction ID.
|
@ -404,10 +404,10 @@ class FederationMakeLeaveServlet(BaseFederationServlet):
|
||||
|
||||
|
||||
class FederationSendLeaveServlet(BaseFederationServlet):
|
||||
PATH = "/send_leave/(?P<room_id>[^/]*)/(?P<txid>[^/]*)"
|
||||
PATH = "/send_leave/(?P<room_id>[^/]*)/(?P<event_id>[^/]*)"
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def on_PUT(self, origin, content, query, room_id, txid):
|
||||
def on_PUT(self, origin, content, query, room_id, event_id):
|
||||
content = yield self.handler.on_send_leave_request(origin, content)
|
||||
defer.returnValue((200, content))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user