Skip to content

Commit

Permalink
chore: Merge changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Oct 27, 2023
1 parent 90cc705 commit a00b21d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tools/shuttle/src/identity/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use chrono::{DateTime, Utc};
use libipld::Cid;
use serde::{Deserialize, Serialize};
use warp::crypto::did_key::CoreSign;
use warp::crypto::{DID, Fingerprint};
use warp::crypto::{Fingerprint, DID};
use warp::error::Error;
use warp::multipass::identity::{IdentityStatus, Platform, SHORT_ID_SIZE};

Expand Down Expand Up @@ -59,17 +59,16 @@ impl IdentityDocument {
return false;
}

if self.username != other.username
if other.verify().is_err() {
return false;
}

self.username != other.username
|| self.status_message != other.status_message
|| self.status != other.status
|| self.profile_banner != other.profile_banner
|| self.profile_picture != other.profile_picture
|| self.platform != other.platform
{
return other.verify().is_ok();
}

false
}
}

Expand Down

0 comments on commit a00b21d

Please sign in to comment.