Fix missing parameters

This commit is contained in:
Neil Alexander 2022-10-11 11:59:30 +01:00
parent bf9f5d5c13
commit 88adcb6344
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -175,10 +175,10 @@ func SaveReadMarker(
// Handle the read receipts that may be included in the read marker. // Handle the read receipts that may be included in the read marker.
if r.Read != "" { if r.Read != "" {
return SetReceipt(req, syncProducer, device, roomID, "m.read", r.Read) return SetReceipt(req, userAPI, syncProducer, device, roomID, "m.read", r.Read)
} }
if r.ReadPrivate != "" { if r.ReadPrivate != "" {
return SetReceipt(req, syncProducer, device, roomID, "m.read.private", r.ReadPrivate) return SetReceipt(req, userAPI, syncProducer, device, roomID, "m.read.private", r.ReadPrivate)
} }
return util.JSONResponse{ return util.JSONResponse{