Fix: Change #admins room message when someone joins via link#84159
Fix: Change #admins room message when someone joins via link#84159iwiznia merged 11 commits intoExpensify:mainfrom
#admins room message when someone joins via link#84159Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
…ix/change-message-when-user-joins-via-link
#admins room message when someone joins via link#admins room message when someone joins via link
…ix/change-message-when-user-joins-via-link
#admins room message when someone joins via link#admins room message when someone joins via link
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@jayeshmangwani 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ecb8af32a5
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
I know that's consistent with Classic terminology, but I think it's really awkward framing. @jamesdeanexpensify do you agree? I would much rather have something like |
|
Love that exact phrasing @JmillsExpensify great call! |
This reverts commit 3024643.
|
@jayeshmangwani Ignore the failed test, it's not related. Ready for your review now |
|
Thanks, I’m reviewing this today. |
JmillsExpensify
left a comment
There was a problem hiding this comment.
We've updated the language, so all looks good to me!
|
@dominictb , I have a question. I used a 10minuted mail to create the private domain and then created another new user with the same domain. However, I’m still getting the prompt: Admin account:
|
|
@jayeshmangwani Is the member user validated? If not, go to Account > Profile > Contact methods, tap your email then enter the magic code. I updated Tests to add this precondition too. |
|
Thanks for the help , yep, that was the issue. The user wasn’t validated. |
|
@dominictb PR looks good. Just to confirm , when we receive the system message |
|
@jayeshmangwani yeah as long as the account is notifications@expensify.com (a system actor). The Expensify name might just be a display name that we implement in the frontend. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAuto-join via the invite link when the user is from the same domain Android: mWeb ChromeAuto-join via the invite link when the user is from the same domain iOS: HybridAppAuto-join via the invite link when the user is from the same domain |
|
@dominictb Merging the latest main might fix the failing Tests here. |
|
🎯 @jayeshmangwani, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #85536. |
…ix/change-message-when-user-joins-via-link
|
@jayeshmangwani All good now |
|
@dominictb Looks good on my end too. I’ve approved PR above, but I’m not sure why no internal engineer is assigned to the PR yet. |
|
🚧 @iwiznia has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.3.42-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.3.42-3 🚀
|



















Explanation of Change
Problem
With
autoJoinenabled (automatically approve join requests from validated users at the same domain). When someone joins a policy via the policy join link, the message in#adminsroom says the policy owner/admin/inviter added him which is confusing because they did not deliberately made that action.Solution
We need to update the report action to:
notifications@expensify.com, not the admin, be the actor (Auth https://github.com/Expensify/Auth/pull/20231)#adminsroom message when someone joins via link #84159)Such scenario is indicated by the
didJoinPolicyflag.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/604683
PROPOSAL:
Tests
Preconditions:
Pre-approve join requests from validated users at...Auto join
#adminsroom[email] joined via the workspace invite linknotifications@expensify.comNon-auto join
#adminsroomAcceptadded ... as a memberManual invite
#adminsroomadded ... as a memberOffline tests
NA
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-03-05.at.23.50.13-compressed.mov