Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

MSC 3952: Intentional mentions support, expose an API to get current mentions in RTE #848

@Velin92

Description

@Velin92

Every time we use the insert_mention function (or similar) ti set up a mention from a suggestion pattern or not, which has the purpose of creating a Mention Node that is then used by a Client to render a Pill, we can consider that as an "Intentional Mention".

As a user of the RTE, I would like to also have a function that exposes the current Mentions state of RTE, so that when I am sending a message I can use this state to attach the intentional mentions in it.
Only the Mention Nodes that have been actively added by the client by using the insert_mention APIs should be considered as such, and should be returned.
Also this API doesn't need to keep track of the order and the presence of multiple mentions of the same user id, or if the @room mention has occurred more than once, what it matters is only if the mention has occurred at least once in the RTE message.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions