Finish fixing up Avatar using URI

This commit is contained in:
Julia 2023-12-12 11:49:04 -05:00
parent 44d40625fe
commit fd6320b136
6 changed files with 10 additions and 48 deletions

View file

@ -114,14 +114,7 @@ impl IncomingCallNotification {
}
fn render_caller(&self, cx: &mut ViewContext<Self>) -> impl Element {
h_stack()
.children(
self.state
.call
.calling_user
.avatar
.as_ref()
.map(|avatar| Avatar::data(avatar.clone())),
)
.child(Avatar::new(self.state.call.calling_user.avatar_uri.clone()))
.child(
v_stack()
.child(Label::new(format!(