-
Notifications
You must be signed in to change notification settings - Fork 501
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
Prompt the user when the invited MatrixId is not recognized #7571
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## develop #7571 +/- ##
===========================================
- Coverage 12.22% 12.21% -0.01%
===========================================
Files 1648 1648
Lines 163591 163637 +46
Branches 67156 67177 +21
===========================================
Hits 19992 19992
- Misses 142954 143000 +46
Partials 645 645
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
self.displayInvitePrompt(contact: contact, contactFound: false) | ||
}) | ||
} else { | ||
displayInvitePrompt(contact: contact) |
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.
Just checking with you this branch:
is it correct calling displayInvitePrompt
with contactFound: true
when MXTools.isMatrixUserIdentifier
returns false?
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.
yes this is correct. FYI This was the previous behaviour before we decided to handle specifically the case where the selected contact is a mxId
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.
perhaps the boolean should be renamed isKnownProfile
or isKnownUser
or the opposite isUnknownProfile
(isUnknownUser
)
I would prefer the last option isUnknownUser
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.
Ok, it makes sense now! 👍🏻
LGTM, renaming as suggested above would be better.
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.
SGTM, I just reacted to @alfogrillo's comment
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.
SGTM, I just reacted to @alfogrillo's comment
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
Kudos, SonarCloud Quality Gate passed! |
This PR applies the change requested by #7558