File tree Expand file tree Collapse file tree 5 files changed +27
-2
lines changed
changelogs/client_server/newsfragments Expand file tree Collapse file tree 5 files changed +27
-2
lines changed Original file line number Diff line number Diff line change
1
+ Document message formats on ``m.text`` and ``m.emote`` messages
Original file line number Diff line number Diff line change 2
2
"age": 242352,
3
3
"content": {
4
4
"body": "thinks this is an example emote",
5
- "msgtype": "m.emote"
5
+ "msgtype": "m.emote",
6
+ "format": "org.matrix.custom.html",
7
+ "formatted_body": "thinks <b>this</b> is an example emote"
6
8
},
7
9
"origin_server_ts": 1431961217939,
8
10
"event_id": "$WLGTSEFSEF:localhost",
Original file line number Diff line number Diff line change 2
2
"age": 242352,
3
3
"content": {
4
4
"body": "This is an example text message",
5
- "msgtype": "m.text"
5
+ "msgtype": "m.text",
6
+ "format": "org.matrix.custom.html",
7
+ "formatted_body": "<b>This is an example text message</b>"
6
8
},
7
9
"origin_server_ts": 1431961217939,
8
10
"event_id": "$WLGTSEFSEF:localhost",
Original file line number Diff line number Diff line change @@ -12,6 +12,16 @@ properties:
12
12
enum:
13
13
- m.emote
14
14
type: string
15
+ format:
16
+ description: |-
17
+ The format used in the ``formatted_body``. Currently only
18
+ ``org.matrix.custom.html`` is supported.
19
+ type: string
20
+ formatted_body:
21
+ description: |-
22
+ The formatted version of the ``body``. This is required if ``format``
23
+ is specified.
24
+ type: string
15
25
required:
16
26
- msgtype
17
27
- body
Original file line number Diff line number Diff line change @@ -12,6 +12,16 @@ properties:
12
12
enum:
13
13
- m.text
14
14
type: string
15
+ format:
16
+ description: |-
17
+ The format used in the ``formatted_body``. Currently only
18
+ ``org.matrix.custom.html`` is supported.
19
+ type: string
20
+ formatted_body:
21
+ description: |-
22
+ The formatted version of the ``body``. This is required if ``format``
23
+ is specified.
24
+ type: string
15
25
required:
16
26
- msgtype
17
27
- body
You can’t perform that action at this time.
0 commit comments