Updated feedback api docs and fixed feedback content template bug
This commit is contained in:
parent
dfea1730dc
commit
cd0afb85c4
|
@ -640,6 +640,16 @@
|
||||||
"Feedback": {
|
"Feedback": {
|
||||||
"id": "Feedback",
|
"id": "Feedback",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"target_event_id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The event ID being acknowledged.",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The type of feedback. Either 'delivered' or 'read'.",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Member": {
|
"Member": {
|
||||||
|
|
|
@ -103,8 +103,7 @@ class FeedbackEvent(SynapseEvent):
|
||||||
def get_content_template(self):
|
def get_content_template(self):
|
||||||
return {
|
return {
|
||||||
"type": u"string",
|
"type": u"string",
|
||||||
"target_event_id": u"string",
|
"target_event_id": u"string"
|
||||||
"msg_sender_id": u"string"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue