-
Notifications
You must be signed in to change notification settings - Fork 246
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
FFI: Expose is_verified UserIdentity method and request_user_identity Encryption method. #4142
base: main
Are you sure you want to change the base?
Conversation
/// Is the user identity considered to be verified. | ||
/// | ||
/// If the identity belongs to another user, our own user identity needs to | ||
/// be verified as well for the identity to be considered to be verified. |
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.
I wonder if we should just copy paste the underlying documentation instead of rolling a new one 🤔
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.
I did but removing the middle section as it seems overly technical from the perspective of an SDK user to me.
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.
Ah, I see, I was looking at the one inside the crypto crate which seemed just perfect. I'm just worried something will change on one level or another and then the documentation will be out of date.
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.
Code looks good, I'm fine with either this code comment or one copied from the SDK. Thanks.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4142 +/- ##
==========================================
- Coverage 84.84% 84.83% -0.01%
==========================================
Files 269 269
Lines 28793 28788 -5
==========================================
- Hits 24429 24422 -7
- Misses 4364 4366 +2 ☔ View full report in Codecov by Sentry. |
/// | ||
/// If the identity belongs to another user, our own user identity needs to | ||
/// be verified as well for the identity to be considered to be verified. | ||
pub fn is_verified(&self) -> bool { |
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.
I am wondering if this data should be live? Maybe not for now but in the future the app could be more reactive if we had a way to get a live UserIdentity
.
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.
Yeah, I'd really like this to be a property on RoomMember
that would update automatically through the room members stream if I'm honest, but I don't have a clue how to do that as the members live separately to the encryption 🫤
I am not sure of the full context here but if you expose |
This is being added to show the green badge on the user profile screen (element-hq/element-meta#2569). I'm unsure now, are you saying that it is possible for |
(I confirm that the API works as expected on a EXA WIP branch) |
No |
3b5b20b
to
afc2594
Compare
For now this is everything we need. |
@bnjbvr I exposed 1 more method to allow requesting identities for unknown users from the homeserver, otherwise I'm happy to have this merged if you're ok with it 🙂 |
Nothing exciting here, just exposing another method.