File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
changelogs/client_server/newsfragments Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change
1
+ Add `thread_id` to the `/receipt` endpoint, as per [MSC3771](https://github.com/matrix-org/matrix-spec-proposals/pull/3771)
Original file line number Diff line number Diff line change @@ -74,8 +74,18 @@ paths:
74
74
required : true
75
75
schema :
76
76
type : object
77
+ properties :
78
+ thread_id :
79
+ type : string
80
+ x-addedInMatrixVersion : " 1.4"
81
+ description : |-
82
+ The root thread event's ID (or `main`) for which
83
+ thread this receipt is intended to be under. If
84
+ not specified, the read receipt is *unthreaded*
85
+ (default).
77
86
example : {
78
- }
87
+ " thread_id " : " main"
88
+ }
79
89
responses :
80
90
200 :
81
91
description : The receipt was sent.
@@ -88,5 +98,19 @@ paths:
88
98
description : This request was rate-limited.
89
99
schema :
90
100
" $ref " : " definitions/errors/rate_limited.yaml"
101
+ 400 :
102
+ description : |-
103
+ The `thread_id` is invalid in some way. For example:
104
+ * It is not a string.
105
+ * It is empty.
106
+ * It is provided for an incompatible receipt type.
107
+ * The `event_id` is not related to the `thread_id`.
108
+ schema :
109
+ $ref : " definitions/errors/error.yaml"
110
+ examples :
111
+ application/json : {
112
+ " errcode " : " M_INVALID_PARAM" ,
113
+ " error " : " thread_id field must be a non-empty string"
114
+ }
91
115
tags :
92
116
- Room participation
You can’t perform that action at this time.
0 commit comments