Bugfix: msg.from[0] is undefined

This commit is contained in:
the-djmaze 2022-12-06 11:19:21 +01:00
parent 0b2e82f9ca
commit c7f554d22b

View file

@ -156,7 +156,7 @@
ko.bindingHandlers.fromPic = {
init: (element, self, dummy, msg) => {
if (msg) {
if (msg?.from?.[0]) {
let url = getAvatar(msg),
from = msg.from[0],
fn = url=>{element.src = url};