Fix origin on device list update EDUs

This commit is contained in:
Till Faelligen 2022-09-16 13:30:20 +02:00
parent fc1d8e479b
commit 7bfc3074d1
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E
2 changed files with 3 additions and 3 deletions

View file

@ -163,10 +163,10 @@ func (p *SyncAPIProducer) SendPresence(
}
func (p *SyncAPIProducer) SendDeviceListUpdate(
ctx context.Context, deviceListUpdate gomatrixserverlib.RawJSON, origin string,
ctx context.Context, deviceListUpdate gomatrixserverlib.RawJSON, origin gomatrixserverlib.ServerName,
) (err error) {
m := nats.NewMsg(p.TopicDeviceListUpdate)
m.Header.Set("origin", origin)
m.Header.Set("origin", string(origin))
m.Data = deviceListUpdate
log.Debugf("Sending device list update: %+v", m.Header)
_, err = p.JetStream.PublishMsg(m, nats.Context(ctx))