mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-02-12 05:54:29 -06:00
Increment by number of read receipts
This commit is contained in:
parent
0eb3bece77
commit
db9c5ef07f
|
@ -629,6 +629,7 @@ func (d *Database) addReceiptDeltaToResponse(
|
|||
}
|
||||
read.User[receipt.UserID] = eduAPI.ReceiptTS{TS: receipt.Timestamp}
|
||||
content[receipt.EventID] = read
|
||||
res.NextBatch.ReceiptPosition++
|
||||
}
|
||||
ev.Content, err = json.Marshal(content)
|
||||
if err != nil {
|
||||
|
@ -636,7 +637,6 @@ func (d *Database) addReceiptDeltaToResponse(
|
|||
}
|
||||
|
||||
jr.Ephemeral.Events = append(jr.Ephemeral.Events, ev)
|
||||
res.NextBatch.ReceiptPosition++
|
||||
res.Rooms.Join[roomID] = jr
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue