This diff introduces parseUserMentions. parseUserMentions takes the username found in the markdown entity/capture and uses that username to find the id of that user using memberMap
This is step 2 in the list below
Outlined below are the steps I will take to make @metion of a user into a touchable
- Introduce createMemberMapForUserMentions function (Right now we only store a set of usernames but we also will want to know the id of the user based on the username)
- Introduce parseUserMentions function (We will use this function to get and return a userID from the membersMap)
- Introduce userProfileBottomSheetActive state to the markdown context (This will be used for disabling the press to focus on a message functionality)
- Introduce MarkdownUserMention component (this will render the touchable that will navigate to the user profile)
Depends on D9391
How is application going to function if this error occurs? In most places we the runtime error to kill the app if database operation fails since application is not going to work correctly. I just want to know whether it is also the case here.