diff --git a/webapp/components/Chat/Chat.vue b/webapp/components/Chat/Chat.vue index 0671891cb..1d22a0a39 100644 --- a/webapp/components/Chat/Chat.vue +++ b/webapp/components/Chat/Chat.vue @@ -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