optonaut / ActiveLabel.swift

UILabel drop-in replacement supporting Hashtags (#), Mentions (@) and URLs (http://) written in Swift
MIT License
4.47k stars 686 forks source link

@ mention #210

Closed RajaReddyiOS closed 6 years ago

RajaReddyiOS commented 7 years ago

If mention people are not available on server database Then how can we handle mention string

ghost commented 7 years ago

@RajaReddyIOS I believe that you are somehow asking your server if the text mentionned correspond to a user and your server is answering you something that tells you if a user with this name exist. The only thing related to the project ActiveLabel here is the fact that you click on a label containing a mention and a block of code you gave is executed. ActiveLabel is no way related to your issue.

But to only answer your question you should alert the user of your app that the user mentionned in the ActiveLabel does not exist.

pvcary commented 6 years ago

Hi @arnaudlebourblanc ,

On a semi-related note, can ActiveLabel detect name mentions like Raja Reddy with a space between the first and last name? Is there something you would recommend doing in this case?

Thanks, Patrick

raja commented 6 years ago

Please don't tag me on issues.

pvcary commented 6 years ago

Sorry! ^