User Details
- User Since
- Sep 13 2022, 9:12 AM (114 w, 11 h)
Dec 29 2023
Just a question - do you plan to add the Roles community action here later as well?
Actually, I don't think we need this. I did some testing without this change and I'm not getting notifications for any self-mentions (I was logged into 'ashoat' on native)
Rebase
Dec 28 2023
Address feedback on removing unnecessary changes
Rebase
Address feedback (will respond to comments separately). Mainly factored out individual types and updated the code to reflect that
Dec 27 2023
Dec 26 2023
Dec 23 2023
Dec 22 2023
Just requesting changes so its back in your queue. Let me know if my testing was missing something
Dec 21 2023
Address feedback
Move constant to account-utils.js with a comment
Revert the most recent update (updated the wrong diff)
Move constant to account-utils.js with a comment
Filter members without a role first, and construct a resolvedMembersMap and key by member.id
Remove console.log from testing
- Rewrite typeaheadMatchedStrings on both web and native to avoid ternary
- Prevent search index from recalculating search results for each usersInThread
Dec 20 2023
Dec 19 2023
I'll leave this to the other reviewers as it seems like they have some more context/feedback here
getUserMentionsCandidates --> useUserMentionsCandidates
Define userInfosWithENSNames in the correct scope
Oh sorry about that, I don't know what I was thinking to not do it for both even though it was called out here.
Separately, wonder if we just want to have a hook like useThreadChatMentionCandidates instead of memoizing the results of getUserMentionsCandidates in both places
Yeah that works better - though I was taking another look at getUserMentionsCandidates and I'm not sure if there's a use for memoization here. I don't think this is computationally expensive, but feel free to let me know if you disagree!
function getUserMentionsCandidates( threadInfo: ThreadInfo, parentThreadInfo: ?ThreadInfo, ): $ReadOnlyArray<RelativeMemberInfo> { if (threadInfo.type !== threadTypes.SIDEBAR) { return threadInfo.members; } if (parentThreadInfo) { return parentThreadInfo.members; } // This scenario should not occur unless the user logs out while looking at a // sidebar. In that scenario, the Redux store may be cleared before ReactNav // finishes transitioning away from the previous screen return []; }
- Memoize hook return collection
- Remove members param from both web and native in rules.react.js
Rebase
Use SetState type
Dec 18 2023
Memoize userMentionsCandidates