Finish fixing up Avatar using URI
This commit is contained in:
parent
44d40625fe
commit
fd6320b136
6 changed files with 10 additions and 48 deletions
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue