txn_id field in events is called transaction_id

This commit is contained in:
Richard van der Hoff 2015-11-16 16:50:54 +00:00
parent b41d771c15
commit 8316881393
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@
"type": "string", "type": "string",
"description": "Optional. The event_id of the previous event for this state. This will be present only for state events appearing in the ``timeline``. If this is not a state event, or there is no previous content, this key will be missing." "description": "Optional. The event_id of the previous event for this state. This will be present only for state events appearing in the ``timeline``. If this is not a state event, or there is no previous content, this key will be missing."
}, },
"txn_id": { "transaction_id": {
"type": "string", "type": "string",
"description": "Optional. The transaction ID set when this message was sent. This key will only be present for message events sent by the device calling this API." "description": "Optional. The transaction ID set when this message was sent. This key will only be present for message events sent by the device calling this API."
} }

View file

@ -253,7 +253,7 @@ paths:
"$74686972643033:example.com": { "$74686972643033:example.com": {
"sender": "@alice:example.com", "sender": "@alice:example.com",
"type": "m.room.message", "type": "m.room.message",
"unsigned": {"age": 124524, "txn_id": "1234"}, "unsigned": {"age": 124524, "transaction_id": "1234"},
"content": { "content": {
"body": "I am a fish", "body": "I am a fish",
"msgtype": "m.text" "msgtype": "m.text"