mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-13 18:45:44 -04:00
Fix typo: Missmatched => Mismatched
This commit is contained in:
@@ -119,10 +119,10 @@ pub enum EventError {
|
||||
MissingField(String),
|
||||
|
||||
#[error("the sender of the plaintext doesn't match the sender of the encrypted message.")]
|
||||
MissmatchedSender,
|
||||
MismatchedSender,
|
||||
|
||||
#[error("the keys of the message don't match the keys in our database.")]
|
||||
MissmatchedKeys,
|
||||
MismatchedKeys,
|
||||
}
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
|
||||
@@ -430,7 +430,7 @@ impl Account {
|
||||
)?;
|
||||
|
||||
if &recipient != self.user_id() || sender != &encrypted_sender {
|
||||
return Err(EventError::MissmatchedSender.into());
|
||||
return Err(EventError::MismatchedSender.into());
|
||||
}
|
||||
|
||||
if self.inner.identity_keys().ed25519()
|
||||
@@ -438,7 +438,7 @@ impl Account {
|
||||
.get(&DeviceKeyAlgorithm::Ed25519)
|
||||
.ok_or(EventError::MissingSigningKey)?
|
||||
{
|
||||
return Err(EventError::MissmatchedKeys.into());
|
||||
return Err(EventError::MismatchedKeys.into());
|
||||
}
|
||||
|
||||
let signing_key =
|
||||
|
||||
@@ -225,7 +225,7 @@ impl PrivateCrossSigningIdentity {
|
||||
if public_identity.master_key() == &master.public_key {
|
||||
Ok(Some(master))
|
||||
} else {
|
||||
Err(SecretImportError::MissmatchedPublicKeys)
|
||||
Err(SecretImportError::MismatchedPublicKeys)
|
||||
}
|
||||
} else {
|
||||
Ok(None)
|
||||
@@ -238,7 +238,7 @@ impl PrivateCrossSigningIdentity {
|
||||
if public_identity.user_signing_key() == &subkey.public_key {
|
||||
Ok(Some(subkey))
|
||||
} else {
|
||||
Err(SecretImportError::MissmatchedPublicKeys)
|
||||
Err(SecretImportError::MismatchedPublicKeys)
|
||||
}
|
||||
} else {
|
||||
Ok(None)
|
||||
@@ -251,7 +251,7 @@ impl PrivateCrossSigningIdentity {
|
||||
if public_identity.self_signing_key() == &subkey.public_key {
|
||||
Ok(Some(subkey))
|
||||
} else {
|
||||
Err(SecretImportError::MissmatchedPublicKeys)
|
||||
Err(SecretImportError::MismatchedPublicKeys)
|
||||
}
|
||||
} else {
|
||||
Ok(None)
|
||||
|
||||
@@ -173,7 +173,7 @@ pub enum SecretImportError {
|
||||
"The public key of the imported private key doesn't match to the \
|
||||
public key that was uploaded to the server"
|
||||
)]
|
||||
MissmatchedPublicKeys,
|
||||
MismatchedPublicKeys,
|
||||
/// The new version of the identity couldn't be stored.
|
||||
#[error(transparent)]
|
||||
Store(#[from] CryptoStoreError),
|
||||
|
||||
Reference in New Issue
Block a user