-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-04-15] [HOLD for payment 2024-04-09] Group chat - Group chat avatar leads to not here page #39249
Comments
Triggered auto assignment to @blimpich ( |
Triggered auto assignment to @adelekennedy ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@adelekennedy I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
We think this issue might be related to the #vip-vsb. |
@blimpich grabbing this from ya since it's related to Group Chats. |
We set the I think we should use if (icon.type === CONST.ICON_TYPE_WORKSPACE || icon.id === -1) {
Navigation.navigate(ROUTES.REPORT_AVATAR.getRoute(reportID));
return;
} Then add specific logic for handling group avatar in const isGroupChat = ReportUtils.isGroupChat(report);
const avatarURL = useMemo(() => (isGroupChat ? ReportUtils.getDefaultGroupAvatar(report?.reportID) : ReportUtils.getWorkspaceAvatar(report)), [report]); Also set |
Thanks - that first link doesn't seem to go anywhere. |
I'm sorry. Just updated the correct reference. |
We will soon modify this to allow adding a custom avatar. So, I think it would be ok to just disable opening an avatar for a Group Chat.
diff --git a/src/components/RoomHeaderAvatars.tsx b/src/components/RoomHeaderAvatars.tsx
index 9298062aa6..ee75f91d58 100644
--- a/src/components/RoomHeaderAvatars.tsx
+++ b/src/components/RoomHeaderAvatars.tsx
@@ -15,8 +15,12 @@ type RoomHeaderAvatarsProps = {
reportID: string;
};
-function RoomHeaderAvatars({icons, reportID}: RoomHeaderAvatarsProps) {
+function RoomHeaderAvatars({icons, reportID, isGroupChat}: RoomHeaderAvatarsProps) {
const navigateToAvatarPage = (icon: Icon) => {
+ if (isGroupChat) {
+ return;
+ }
+
if (icon.type === CONST.ICON_TYPE_WORKSPACE) {
Navigation.navigate(ROUTES.REPORT_AVATAR.getRoute(reportID));
return; diff --git a/src/pages/ReportDetailsPage.tsx b/src/pages/ReportDetailsPage.tsx
index 80563fcf7b..ccfe329419 100644
--- a/src/pages/ReportDetailsPage.tsx
+++ b/src/pages/ReportDetailsPage.tsx
@@ -218,6 +218,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
<RoomHeaderAvatars
icons={icons}
reportID={report?.reportID}
+ isGroupChat={ReportUtils.isGroupChat(report)}
/>
)}
</View> |
QA re-testing now |
This is a pass. Tapping the avatar does not navigate to anywhere. 39249.mp4 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.58-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-04-09. 🎊 |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.60-13 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-04-15. 🎊 |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@marcaaron what payment is due here? It looks like there are two connected PRs both reviewed by @s77rt - is the only payment due for the C+ PR reviews? |
No payment is due here. This is a part of a #32317 |
|
Let's close this |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.58-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
Group chat avatar opens in full screen view without issue.
Actual Result:
Group chat avatar leads to not here page.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6431593_1711719921836.group_chat_avatar.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: