Skip to content

Commit a628e84

Browse files
committed
fix(crypto): Fix a copy paste error preventing us from verifying users
1 parent 56d80b9 commit a628e84

File tree

1 file changed

+1
-1
lines changed
  • crates/matrix-sdk-crypto/src/identities

1 file changed

+1
-1
lines changed

crates/matrix-sdk-crypto/src/identities/user.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl UserIdentity {
225225
/// Returns a request that needs to be sent out for the user to be marked
226226
/// as verified.
227227
pub async fn verify(&self) -> Result<SignatureUploadRequest, SignatureError> {
228-
if self.user_id() == self.verification_machine.own_user_id() {
228+
if self.user_id() != self.verification_machine.own_user_id() {
229229
Ok(self
230230
.verification_machine
231231
.private_identity

0 commit comments

Comments
 (0)