Use event origin failing all else

This commit is contained in:
Neil Alexander 2021-12-15 14:05:35 +00:00
parent 2203dd9d8a
commit 2a46752d0b
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 8 additions and 11 deletions

View file

@ -139,6 +139,7 @@ func (r *Leaver) performLeaveRoomByID(
{
Kind: api.KindNew,
Event: event.Headered(buildRes.RoomVersion),
Origin: event.Origin(),
AuthEventIDs: event.AuthEventIDs(),
SendAsServer: string(r.Cfg.Matrix.ServerName),
},