Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

collab: Use avatar URLs returned from Cloud (#58265)

Marshall Bowersb4ce020d832e
diff --git a/crates/collab/src/rpc.rs b/crates/collab/src/rpc.rs
index acc3708a6d1..b5870daf330 100644
--- a/crates/collab/src/rpc.rs
+++ b/crates/collab/src/rpc.rs
@@ -2685,7 +2685,7 @@ async fn get_users(
.into_iter()
.map(|user| proto::User {
id: user.id.to_proto(),
- avatar_url: format!("https://github.com/{}.png?size=128", user.github_login),
+ avatar_url: user.avatar_url,
github_login: user.github_login,
name: user.name,
})
@@ -2723,7 +2723,7 @@ async fn fuzzy_search_users(
.filter(|user| user.id != session.user_id())
.map(|user| proto::User {
id: user.id.to_proto(),
- avatar_url: format!("https://github.com/{}.png?size=128", user.github_login),
+ avatar_url: user.avatar_url,
github_login: user.github_login,
name: user.name,
})