Use SendEvents to send the invite to the roomserver

This commit is contained in:
Brendan Abolivier 2017-09-12 16:50:06 +01:00
parent e468fb687a
commit ddc4b28781
No known key found for this signature in database
GPG key ID: 8EF1500759F70623

View file

@ -126,7 +126,7 @@ func ExchangeThirdPartyInvite(
} }
// Send the event to the roomserver // Send the event to the roomserver
if err = producer.SendInvite(signedEvent.Event); err != nil { if err = producer.SendEvents([]gomatrixserverlib.Event{signedEvent.Event}, cfg.Matrix.ServerName); err != nil {
return httputil.LogThenError(httpReq, err) return httputil.LogThenError(httpReq, err)
} }