What is the Mention's "length" parameter? #409
Answered
by
AsamK
Atomic-Bean
asked this question in
Q&A
-
While working on the JSON output I noticed that "mentions" have a "length" parameter, but I don't really get what it is. The signal api doesn't describe what it does either. So far it always seems to be 1. |
Beta Was this translation helpful? Give feedback.
Answered by
AsamK
Jan 11, 2021
Replies: 1 comment 1 reply
-
I think the index and length parameters define the substring that should be replaced with the mention text (@name). |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Atomic-Bean
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.