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.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/clientapi/producers/syncapi.go b/clientapi/producers/syncapi.go
index 6e869c31..187e3412 100644
--- a/clientapi/producers/syncapi.go
+++ b/clientapi/producers/syncapi.go
@@ -42,7 +42,7 @@ type SyncAPIProducer struct {
}
// SendData sends account data to the sync API server
-func (p *SyncAPIProducer) SendData(userID string, roomID string, dataType string, readMarker *eventutil.ReadMarkerJSON) error {
+func (p *SyncAPIProducer) SendData(userID string, roomID string, dataType string, readMarker *eventutil.ReadMarkerJSON, ignoredUsers *types.IgnoredUsers) error {
m := &nats.Msg{
Subject: p.TopicClientData,
Header: nats.Header{},
@@ -50,9 +50,10 @@ func (p *SyncAPIProducer) SendData(userID string, roomID string, dataType string
m.Header.Set(jetstream.UserID, userID)
data := eventutil.AccountData{
- RoomID: roomID,
- Type: dataType,
- ReadMarker: readMarker,
+ RoomID: roomID,
+ Type: dataType,
+ ReadMarker: readMarker,
+ IgnoredUsers: ignoredUsers,
}
var err error
m.Data, err = json.Marshal(data)