[lib] Factor out extractNewMentionedParentMembers
Summary:
Need this in the next diff.
Depends on D6804
Test Plan:
I tested this stack with the following steps on both web and native:
- Make sure users get auto-added to a sidebar when @-mentioned
- Test mentions typeahead and make sure it includes all members of parent
- If a user is @-mentioned in a text message that triggers the creation of a sidebar, then make sure they are included in the sidebar creation message
- If a user is @-mentioned in a text message that triggers the creation of a sidebar, then make sure their name is bolded from the very start of when the message is visible on-screen
Reviewers: atul
Reviewed By: atul
Subscribers: tomek
Differential Revision: https://phab.comm.dev/D6805