mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-31 13:22:46 +00:00
Private read receipts (#2789)
Implement behaviours for `m.read.private` receipts.
This commit is contained in:
parent
3920b9f9b6
commit
0a9aebdf01
6 changed files with 66 additions and 33 deletions
|
@ -67,6 +67,10 @@ func (p *ReceiptStreamProvider) IncrementalSync(
|
|||
if _, ok := req.IgnoredUsers.List[receipt.UserID]; ok {
|
||||
continue
|
||||
}
|
||||
// Don't send private read receipts to other users
|
||||
if receipt.Type == "m.read.private" && req.Device.UserID != receipt.UserID {
|
||||
continue
|
||||
}
|
||||
receiptsByRoom[receipt.RoomID] = append(receiptsByRoom[receipt.RoomID], receipt)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue