socialview icon indicating copy to clipboard operation
socialview copied to clipboard

Get mention user profile id

Open nanashili opened this issue 5 years ago • 1 comments

Is it possible to get a users profile ID when mentioning user. Only way i can get the id is if i change Mention.class

@NonNull @Override public String toString() { return id.toString(); }

but that's not what i want i want the username but when i upload it to my Firebase Database i wanna save the username and id of the mentioned user.

nanashili avatar Jun 19 '20 20:06 nanashili

First, actually you don't have to use Mention. If you have your own object, implement it with Mentionable and you're good to go.

At last, if I'm not mistaken you want textView.getMentions() to return list of mentionable object and not string. The problem with this is the textview cannot differentiate between mentions you have manually typed and mentions you click from the popup. Your popup mentions are definitely a Mentionable object, while your written mentions are string. There is not even a validation that mentions you type actually exists in your database.

hanggrian avatar Jun 08 '21 20:06 hanggrian

Closed for inactivity.

hanggrian avatar Aug 29 '23 19:08 hanggrian