Fix build event

This commit is contained in:
Neil Alexander 2022-11-14 14:25:01 +00:00
parent 2e438f9d2c
commit be19b09514
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -65,8 +65,14 @@ func BuildEvent(
return nil, err return nil, err
} }
_, domain, err := cfg.SplitLocalID('@', builder.Sender)
if err != nil {
return nil, err
}
// TODO: Fix key ID and private key here
event, err := builder.Build( event, err := builder.Build(
evTime, cfg.ServerName, cfg.KeyID, evTime, domain, cfg.KeyID,
cfg.PrivateKey, queryRes.RoomVersion, cfg.PrivateKey, queryRes.RoomVersion,
) )
if err != nil { if err != nil {