Skip to content
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

Merged
merged 2 commits into from
Jun 6, 2023

Conversation

nimau
Copy link
Contributor

@nimau nimau commented Jun 2, 2023

This PR applies the change requested by #7558

@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (c87b8e2) 12.22% compared to head (ee63d41) 12.21%.

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              
Flag Coverage Δ
unittests 6.06% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...dules/MatrixKit/Views/RoomTitle/MXKRoomTitleView.m 0.00% <0.00%> (ø)
...dal/ContactsPicker/ContactsPickerCoordinator.swift 0.00% <0.00%> (ø)
...Modal/ContactsPicker/ContactsPickerViewModel.swift 0.00% <0.00%> (ø)
Riot/Modules/Room/RoomCoordinator.swift 0.00% <0.00%> (ø)
Riot/Modules/Room/RoomViewController.m 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nimau nimau marked this pull request as ready for review June 2, 2023 13:37
@nimau nimau requested review from a team and alfogrillo and removed request for a team June 2, 2023 13:37
self.displayInvitePrompt(contact: contact, contactFound: false)
})
} else {
displayInvitePrompt(contact: contact)
Copy link
Contributor

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?

Copy link
Member

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

Copy link
Member

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

Copy link
Contributor

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.

Copy link
Member

@giomfo giomfo left a 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

Copy link
Member

@giomfo giomfo left a 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

Copy link
Contributor

@alfogrillo alfogrillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@nimau nimau merged commit 1e5809d into develop Jun 6, 2023
@nimau nimau deleted the nimau/7558_create_dm_unrecognized_matrixid branch June 6, 2023 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants