-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mWeb - Group chat - Search is not blocked when user reached max participants #7679
Comments
Triggered auto assignment to @AndrewGable ( |
Triggered auto assignment to @bfitzexpensify ( |
This issue exists in all platforms. In OptionSelectors, Use App/src/components/OptionsSelector.js Lines 206 to 213 in 3590200
<TextInput
ref={el => this.textInput = el}
value={this.props.value}
onChangeText={this.props.onChangeText}
onKeyPress={this.handleKeyPress}
placeholder={this.props.placeholderText
|| this.props.translate('optionsSelector.nameEmailOrPhoneNumber')}
+ editable = {!this.props.maxParticipantsReached}
/> We should also add following lines of codes in handleKeyPress(). App/src/components/OptionsSelector.js Lines 124 to 129 in 3590200
|
Upwork job here |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Current assignee @AndrewGable is eligible for the Exported assigner, not assigning anyone new. |
@sobitneupane |
Here's what I found. When we enable the user to navigate using arrow keys (we haven't on new group right now) The first user is always highlighted so let's say someone reached the max participants limit and searches for a new user, now if the user pressed the enter/return key the first user that is highlighted will get removed(as on enter we select/unselect the user). Screen.Recording.2022-02-11.at.11.59.36.PM.movcc: @parasharrajat |
Hello, <OptionsSelector and inside OptionsSelector switch (e.nativeEvent.key) { thats is |
ProposalDo not search when max participant is reached. In this case user can enter text but it will not search. Lines 235 to 246 in 8431ed4
onChangeText={(searchValue = '') => {
+ if(maxParticipantsReached) {
+ return;
+ }
const {
recentReports,
personalDetails,
userToInvite,
} = OptionsListUtils.getNewChatOptions( ResultScreen.Recording.2022-02-13.at.9.19.24.AM.mov |
It does not seem like a valid issue. For more, you can look at Sahil's comment. I would discuss this on slack to understand the required change before accepting proposals. I will do this on Monday. Thanks, everyone for the proposal. There are a couple of PRs affecting this behavior indirectly. So, I would prefer to wait before we handle this issue. |
No update...I haven't discussed this. I don't understand the issue here. It seems to work fine from the video. And I don't know what should be discussed for this on slack. cc: @bfitzexpensify When we deselect a user from the list and there is some search text in the input. you should see the search results. Right? |
Question ⬆️ |
Yes, I also can't quite see the issue here. Tested on iOS and desktop, and the behaviour looks correct to me:
That runs counter to the original post — the behaviour right now is as expected. So, I think we are fine to close this one out. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The search is blocked. The user is unable to add another user to the group.
Actual Result:
The user is able to search for a new user. The search is not blocked after reaching max of participants for group chat. The first added user in the participants list disappears from the list of participants and new searched user can be added to the group.
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.38.1
Reproducible in staging?: Yes
Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug5447628_0-02-05-defd673bf7b5b056556a0bf71b7e59cc101b76c4ce36a7dba386607e31b403df_6c2337c7d65e23f3.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: