diff --git a/crates/client/src/user.rs b/crates/client/src/user.rs index 3f52b2b6d9..8a4f723dfe 100644 --- a/crates/client/src/user.rs +++ b/crates/client/src/user.rs @@ -283,19 +283,19 @@ impl UserStore { ContactRequestStatus::Pending } else if self .contacts - .binary_search_by_key(&&user.id, |contact| &contact.user.id) + .binary_search_by_key(&&user.github_login, |contact| &contact.user.github_login) .is_ok() { ContactRequestStatus::RequestAccepted } else if self .outgoing_contact_requests - .binary_search_by_key(&&user.id, |user| &user.id) + .binary_search_by_key(&&user.github_login, |user| &user.github_login) .is_ok() { ContactRequestStatus::RequestSent } else if self .incoming_contact_requests - .binary_search_by_key(&&user.id, |user| &user.id) + .binary_search_by_key(&&user.github_login, |user| &user.github_login) .is_ok() { ContactRequestStatus::RequestReceived