Fix 'm.avatar is null' error message

This commit is contained in:
Wolfgang Huß 2023-08-11 11:14:47 +02:00
parent 9c934c2a17
commit 2c123313ed

View File

@ -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