Skip to content

Commit

Permalink
Fix 'm.avatar is null' error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Tirokk committed Aug 11, 2023
1 parent 9c934c2 commit 2c12331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/components/Chat/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +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()
if (!m.avatar.startsWith('/api/')) {
if (!m.avatar?.startsWith('/api/')) {
m.avatar = this.$filters.proxyApiUrl(m.avatar)
}
msgs[m.indexId] = m
Expand Down

0 comments on commit 2c12331

Please sign in to comment.