Skip to content

What is the Mention's "length" parameter? #409

Answered by AsamK
Atomic-Bean asked this question in Q&A
Discussion options

You must be logged in to vote

I think the index and length parameters define the substring that should be replaced with the mention text (@name).
Currently signal just puts an object replacement character there ( U+FFFC) so the length is always 1.
The length field is probably there to future proof the api.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Atomic-Bean
Comment options

Answer selected by Atomic-Bean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants