mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-28 05:54:09 +01:00
Add some notes about what/when to include the m.mentions property.
This commit is contained in:
parent
b16b850731
commit
ebda37ea8c
|
|
@ -45,6 +45,13 @@ Similarly, the entire room can be mentioned:
|
||||||
```
|
```
|
||||||
|
|
||||||
Additionally, see [the `.m.rule.is_user_mention` and `.m.rule.is_room_mention` push rules](#predefined-rules).
|
Additionally, see [the `.m.rule.is_user_mention` and `.m.rule.is_room_mention` push rules](#predefined-rules).
|
||||||
|
Users should not add their own Matrix ID to the `m.mentions` property as outgoing
|
||||||
|
messages cannot self-notify.
|
||||||
|
|
||||||
|
To disable legacy behaviour of notifications occurring due to matching against
|
||||||
|
the localpart of Matrix IDs and display names it is recommended that clients include
|
||||||
|
a `m.mentions` property on each event. If there are no mentions to include it can
|
||||||
|
be an empty object.
|
||||||
|
|
||||||
#### Client behaviour
|
#### Client behaviour
|
||||||
|
|
||||||
|
|
@ -78,10 +85,6 @@ user or room information.
|
||||||
|
|
||||||
TODO Behavior with edits.
|
TODO Behavior with edits.
|
||||||
|
|
||||||
TODO Always include `m.mentions` property.
|
|
||||||
|
|
||||||
TODO Note that users should *never* include their own Matrix ID in `m.mentions`.
|
|
||||||
|
|
||||||
{{% boxes/note %}}
|
{{% boxes/note %}}
|
||||||
Similar to legacy [matrix.to URLs](/appendices/#matrixto-navigation),
|
Similar to legacy [matrix.to URLs](/appendices/#matrixto-navigation),
|
||||||
groups used to be representable by mentions. They follow a similar format
|
groups used to be representable by mentions. They follow a similar format
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue