-
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
Fixes member count in group chat when creating it #40939
Conversation
@ahmedGaber93 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewing now. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativea.movAndroid: mWeb Chromeaw.moviOS: Nativei.moviOS: mWeb Safariiw.movMacOS: Chrome / SafariScreen.Recording.2024-04-26.at.1.15.34.AM.movMacOS: Desktopd.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested well!
@thienlnam Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@@ -738,7 +738,7 @@ function openReport( | |||
if (ReportUtils.isGroupChat(newReportObject)) { | |||
parameters.chatType = CONST.REPORT.CHAT_TYPE.GROUP; | |||
parameters.groupChatAdminLogins = currentUserEmail; | |||
parameters.optimisticAccountIDList = participantAccountIDList.join(','); | |||
parameters.optimisticAccountIDList = Object.keys(newReportObject.participants ?? []).join(','); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ?? []
needs to be ?? {}
? It's an object not an array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, that's better than returning a 0
. 😄 Would be great to fix it though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh shit, Carlo's test was exactly what I did in the console, creating a PR to fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.67-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.67-7 🚀
|
1 similar comment
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.67-7 🚀
|
Details
cc: @marcaaron
Fixed Issues
$ #40463
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-04-25.at.18.09.13.mov
iOS: mWeb Safari
Uploading Screen Recording 2024-04-25 at 18.15.20.mov…
MacOS: Chrome / Safari
Screen.Recording.2024-04-25.at.17.59.39.mov
MacOS: Desktop
Screen.Recording.2024-04-25.at.18.12.31.mov