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

Warn and block sending on verification violation #3679

Merged
merged 5 commits into from
Jan 20, 2025

Conversation

BillCarsonFr
Copy link
Member

@BillCarsonFr BillCarsonFr commented Jan 15, 2025

Pull Request Checklist

Part of element-hq/element-meta#2492 (still partial as there is no way to verify other users yet on EX, so you can only withdraw the verification requirement).
EXI counterpart of EXA element-hq/element-x-android#4126

Adds support for identity violation detection. Will show a warning notice and block sending (notice that sending would fail anyhow in that case).
image

withdraw_exi

Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 86.33094% with 38 lines in your changes missing coverage. Please review.

Project coverage is 78.48%. Comparing base (1af5a4a) to head (04005c2).
Report is 4 commits behind head on develop.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...urces/Screens/RoomScreen/RoomScreenViewModel.swift 7.14% 26 Missing ⚠️
...tTests/Sources/ComposerToolbarViewModelTests.swift 94.69% 6 Missing ⚠️
...een/ComposerToolbar/ComposerToolbarViewModel.swift 90.90% 3 Missing ⚠️
...Screens/RoomScreen/View/RoomScreenFooterView.swift 96.61% 2 Missing ⚠️
...Screen/ComposerToolbar/ComposerToolbarModels.swift 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3679      +/-   ##
===========================================
- Coverage    78.50%   78.48%   -0.03%     
===========================================
  Files          792      792              
  Lines        67338    67596     +258     
===========================================
+ Hits         52864    53050     +186     
- Misses       14474    14546      +72     
Flag Coverage Δ
unittests 70.00% <86.33%> (-0.02%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@BillCarsonFr BillCarsonFr force-pushed the valere/identity_violation_banner branch from 1cc742b to 47671c0 Compare January 15, 2025 14:00
@BillCarsonFr BillCarsonFr added the pr-feature for a new feature label Jan 15, 2025
@BillCarsonFr BillCarsonFr changed the title feat(crypto): Warn and block sending on verification violation Warn and block sending on verification violation Jan 15, 2025
@BillCarsonFr BillCarsonFr force-pushed the valere/identity_violation_banner branch from e3422f9 to f7003cb Compare January 15, 2025 21:44
@BillCarsonFr BillCarsonFr force-pushed the valere/identity_violation_banner branch from 6b00504 to 0feecfa Compare January 16, 2025 13:18
@BillCarsonFr BillCarsonFr marked this pull request as ready for review January 16, 2025 13:18
@BillCarsonFr BillCarsonFr requested a review from a team as a code owner January 16, 2025 13:18
@BillCarsonFr BillCarsonFr requested review from Velin92 and removed request for a team January 16, 2025 13:18
@stefanceriu stefanceriu requested review from stefanceriu and removed request for Velin92 January 17, 2025 15:15
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.

Super stuff Valere, thank you for helping us out with this!

I left one question and took the liberty of making a few small changes, hope that's okay.

@stefanceriu stefanceriu merged commit f20847f into develop Jan 20, 2025
13 checks passed
@stefanceriu stefanceriu deleted the valere/identity_violation_banner branch January 20, 2025 16:29
@BillCarsonFr BillCarsonFr self-assigned this Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature for a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants