From 2c123313ed6267bb1c88470ba7ae3f4f693cfc15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Fri, 11 Aug 2023 11:14:47 +0200 Subject: [PATCH] Fix 'm.avatar is null' error message --- webapp/components/Chat/Chat.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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