Skip to content

Commit

Permalink
try to fix avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Aug 7, 2023
1 parent a847879 commit 6f43321
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/components/Chat/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ export default {
;[...this.messages, ...Message].forEach((m) => {
if (m.senderId !== this.currentUser.id) m.seen = true
m.date = new Date(m.date).toDateString()
m.avatar = this.$filters.proxyApiUrl(m.avatar)
msgs[m.indexId] = m
})
this.messages = msgs.filter(Boolean)
Expand Down Expand Up @@ -413,7 +414,7 @@ export default {
}
: null,
users: room.users.map((u) => {
return { ...u, username: u.name, avatar: u.avatar?.url }
return { ...u, username: u.name, avatar: this.$filters.proxyApiUrl(u.avatar?.url) }
}),
}
if (!fixedRoom.avatar) {
Expand Down

0 comments on commit 6f43321

Please sign in to comment.