File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,33 @@ federated. Servers MUST NOT send receipts of `receiptType` `m.read.private` to
73
73
any other user than the sender. Servers also MUST NOT send receipts of
74
74
` receiptType ` ` m.read.private ` to any server over federation.
75
75
76
+ As implied by adding a new ` receiptType ` , ` m.read.private ` receipts are echoed
77
+ back to clients through [ ` m.receipt ` ] ( https://spec.matrix.org/v1.3/client-server-api/#mreceipt ) .
78
+ The structure is the same as ` m.read ` . For example:
79
+
80
+ ``` json
81
+ {
82
+ "type" : " m.receipt" ,
83
+ "content" : {
84
+ "$event" : {
85
+ "m.read" : {
86
+ "@public_user:example.org" : {
87
+ "ts" : 1661385089714
88
+ }
89
+ },
90
+ "m.read.private" : {
91
+ "@self:example.org" : {
92
+ "ts" : 1661385103450
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ ```
99
+
100
+ Due to the nature of private read receipts, the ` m.read.private ` map in ` m.receipt `
101
+ should only ever have the user's own ID.
102
+
76
103
## Security considerations
77
104
78
105
Servers could act as if ` m.read.private ` is the same as ` m.read ` so the user
You can’t perform that action at this time.
0 commit comments