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

Show a verification badge on the Room Member/User Profile screens. #3427

Merged
merged 6 commits into from
Oct 21, 2024

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Oct 18, 2024

This PR makes 2 changes to the Room Member and User Profile screens:

  • Show a verified badge when verified.
  • Show a disabled Verify button when the user isn't verified.

Requires matrix-org/matrix-rust-sdk#4142, closes #3413

Verified Unverified
test_roomMemberDetailsScreen-iPhone-16-en-GB Verified-User test_roomMemberDetailsScreen-iPhone-16-en-GB Other-User

@pixlwave pixlwave requested a review from a team as a code owner October 18, 2024 12:54
@pixlwave pixlwave requested review from stefanceriu and removed request for a team October 18, 2024 12:54
@pixlwave pixlwave added the pr-change for updates to an existing feature label Oct 18, 2024
@pixlwave pixlwave changed the title Doug/verified status Show a verification badge on the Room Member/User Profile screens. Oct 18, 2024
Copy link

github-actions bot commented Oct 18, 2024

Warnings
⚠️ Some of the commits are missing ticket numbers. Please consider squashing all commits that don't have a tracking number.
⚠️ You seem to have made changes to views. Please consider adding screenshots.

Generated by 🚫 Danger Swift against e72347d

Copy link

codecov bot commented Oct 18, 2024

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
846 1 845 0
View the full list of 1 ❄️ flaky tests
MediaUploadingPreprocessorTests testPortraitMp4VideoProcessing()

Flake rate in main: 32.00% (Passed 34 times, Failed 16 times)

Stack Traces | 21.9s run time
XCTAssertEqualWithAccuracy failed: ("6521017") is not equal to ("6520897") +/- ("100") (.../UnitTests/Sources/MediaUploadingPreprocessorTests.swift:167)

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

Copy link
Member

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

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

lgtm ❇️

}
case .failure(let error):
MXLog.warning("Failed to find member: \(error)")
actionsSubject.send(.openUserProfile)
Copy link
Member

Choose a reason for hiding this comment

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

I vaguely remember what this was about, may be we should add a comment.

@@ -204,4 +204,6 @@ protocol ClientProxyProtocol: AnyObject, MediaLoaderProtocol {

func pinUserIdentity(_ userID: String) async -> Result<Void, ClientProxyError>
func resetIdentity() async -> Result<IdentityResetHandle?, ClientProxyError>

func userIdentity(_ userID: String) async -> Result<UserIdentity?, ClientProxyError>
Copy link
Member

Choose a reason for hiding this comment

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

I feel like this is missing a verb 🙃

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah it's weird isn't it. It is no different to sessionVerificationController() -> SessionVerificationControllerProtocol but it reads more weirdly. Maybe I'll make it userIdentity(for: userID).

@pixlwave pixlwave force-pushed the doug/verified-status branch from 599574e to e72347d Compare October 21, 2024 14:15
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
14.4% Duplication on New Code (required ≤ 10%)

See analysis details on SonarCloud

@pixlwave
Copy link
Member Author

Ignoring enterprise tests as that same one is fine on normal. And SC is right these 2 screens are very similar, but thats fine for now.

@pixlwave pixlwave merged commit a4ea552 into develop Oct 21, 2024
9 of 11 checks passed
@pixlwave pixlwave deleted the doug/verified-status branch October 21, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-change for updates to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task] Show in user's profile when they have been verified
2 participants