Start changing Avatar to use URI
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
parent
376716254f
commit
44d40625fe
19 changed files with 190 additions and 203 deletions
|
@ -364,13 +364,7 @@ impl ChatPanel {
|
|||
if !is_continuation {
|
||||
result = result.child(
|
||||
h_stack()
|
||||
.children(
|
||||
message
|
||||
.sender
|
||||
.avatar
|
||||
.clone()
|
||||
.map(|avatar| Avatar::data(avatar)),
|
||||
)
|
||||
.child(Avatar::new(message.sender.avatar_uri.clone()))
|
||||
.child(Label::new(message.sender.github_login.clone()))
|
||||
.child(Label::new(format_timestamp(
|
||||
message.timestamp,
|
||||
|
@ -659,7 +653,7 @@ mod tests {
|
|||
timestamp: OffsetDateTime::now_utc(),
|
||||
sender: Arc::new(client::User {
|
||||
github_login: "fgh".into(),
|
||||
avatar: None,
|
||||
avatar_uri: "avatar_fgh".into(),
|
||||
id: 103,
|
||||
}),
|
||||
nonce: 5,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue