Fix build event
This commit is contained in:
parent
2e438f9d2c
commit
be19b09514
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue