Skip to content

Commit

Permalink
Have unsigned.age appear on all room events
Browse files Browse the repository at this point in the history
This is useful for a lot of things, like bridges (appservices), VoIP handling, and clients which generally may wish to do something with the field. Might as well include it on every event, despite the recommendation of #1524
  • Loading branch information
turt2live committed Aug 29, 2018
1 parent 8e42f3a commit 62b1b8b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
5 changes: 4 additions & 1 deletion event-schemas/examples/core/room_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"event_id": "$143273582443PhrSn:domain.com",
"room_id": "!jEsUZKDJdhlrceRyVU:domain.com",
"sender": "@example:domain.com",
"origin_server_ts": 1432735824653
"origin_server_ts": 1432735824653,
"unsigned": {
"age": 1234
}
}
3 changes: 0 additions & 3 deletions event-schemas/examples/m.call.answer
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@
"type" : "answer",
"sdp" : "v=0\r\no=- 6584580628695956864 2 IN IP4 127.0.0.1[...]"
}
},
"unsigned": {
"age": 1234
}
}
3 changes: 0 additions & 3 deletions event-schemas/examples/m.call.candidates
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@
"candidate": "candidate:863018703 1 udp 2122260223 10.9.64.156 43670 typ host generation 0"
}
]
},
"unsigned": {
"age": 1234
}
}
3 changes: 0 additions & 3 deletions event-schemas/examples/m.call.hangup
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@
"content": {
"version" : 0,
"call_id": "12345"
},
"unsigned": {
"age": 1234
}
}
3 changes: 0 additions & 3 deletions event-schemas/examples/m.call.invite
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@
"type" : "offer",
"sdp" : "v=0\r\no=- 6584580628695956864 2 IN IP4 127.0.0.1[...]"
}
},
"unsigned": {
"age": 1234
}
}

0 comments on commit 62b1b8b

Please sign in to comment.