Commit 8df8e20b authored by LNJ's avatar LNJ Committed by Jonah Brüchert

ChatPage: Fix recipient's avatar displayed

Fixes #131.
parent abd210fe
......@@ -69,12 +69,12 @@ Kirigami.Page {
model: kaidan.messageModel
delegate: ChatMessage {
sentByMe: model.recipient !== kaidan.jid
sentByMe: model.recipient != kaidan.jid
messageBody: model.message
dateTime: new Date(timestamp)
isRead: model.isDelivered
recipientAvatarUrl: kaidan.avatarStorage.getHashOfJid(recipient) != "" ?
kaidan.avatarStorage.getAvatarUrl(recipient) :
recipientAvatarUrl: kaidan.avatarStorage.getHashOfJid(author) !== "" ?
kaidan.avatarStorage.getAvatarUrl(author) :
kaidan.getResourcePath("images/fallback-avatar.svg")
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment