aboutsummaryrefslogtreecommitdiff
path: root/clientapi/producers/syncapi.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/producers/syncapi.go')
-rw-r--r--clientapi/producers/syncapi.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/clientapi/producers/syncapi.go b/clientapi/producers/syncapi.go
index 9b1d6b1a..9ab90391 100644
--- a/clientapi/producers/syncapi.go
+++ b/clientapi/producers/syncapi.go
@@ -30,7 +30,7 @@ type SyncAPIProducer struct {
}
// SendData sends account data to the sync API server
-func (p *SyncAPIProducer) SendData(userID string, roomID string, dataType string) error {
+func (p *SyncAPIProducer) SendData(userID string, roomID string, dataType string, readMarker *eventutil.ReadMarkerJSON) error {
m := &nats.Msg{
Subject: p.Topic,
Header: nats.Header{},
@@ -38,8 +38,9 @@ func (p *SyncAPIProducer) SendData(userID string, roomID string, dataType string
m.Header.Set(jetstream.UserID, userID)
data := eventutil.AccountData{
- RoomID: roomID,
- Type: dataType,
+ RoomID: roomID,
+ Type: dataType,
+ ReadMarker: readMarker,
}
var err error
m.Data, err = json.Marshal(data)