-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add support for Phone mention without SMS domain @expensify.sms
#647
Add support for Phone mention without SMS domain @expensify.sms
#647
Conversation
@srikarparsi Don't worry about it. @c3024 and @jasperhuangg will handle the review |
Backend sends errors when we send mentions with numbers which are not previously interacted with. This is working fine on mentions1.mp4
mentions2.mp4
|
Could you add unit tests for these changes in |
It was more proper to update the existing test, so updated! |
@c3024 Yes You are right I did reproduce the error too but obviously it means there is a BE job also required in parallel to these changes of removing the sms domain in phone mentions.
cc: @jasperhuangg |
Cool, I'll take a look at fixing that |
@FitseTLT I investigated a back-end solution, and found that the proper solution should actually lie in the front-end. Here, when we see that the mentioned user is a phone number (that doesn't have Then, when we render the comment, we should omit the Let me know if you have any additional questions, and sorry I didn't catch this sooner! |
@FitseTLT I'm going to convert this to a draft while you work on it, let me know when it's ready for another review! |
@c3024 @jasperhuangg Ready for review |
Did you check if the changes you made are working correctly for the issues discussed in the previous comments till date? @FitseTLT |
Yep |
Could you post a video of a user starting a chat with a new number? |
2024-02-22.18-55-24.mp4 |
From @jasperhuangg 's comment here
@FitseTLT Can you see if you can omit the For report action this suggestion by @aim-salam in an earlier proposal for this issue appears to be useful.
( for |
Yeah definitely! We we will deal with the removal of the sms domain on the main issue only focusing on the phone number mention parsing here 👍 |
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.
LGTM
Fixed Issues
$ GH_LINK
Tests
https://github.com/Expensify/App/blob/f438cb7901c4405e7ec2bbb22aaa904bb5b8fb66/package.json#L103-L104
npm i
https://github.com/Expensify/App/blob/f438cb7901c4405e7ec2bbb22aaa904bb5b8fb66/src/pages/home/report/ReportActionCompose/SuggestionMention.js#L166
2024-02-13.23-17-20.mp4
QA
same