From b25570232f60d57d8596884c0c7090ef847b9bdc Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sun, 7 Jul 2024 22:26:54 +1200 Subject: [PATCH] fix for nullable var --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index cf79039..e12e09a 100644 --- a/public/index.html +++ b/public/index.html @@ -1394,7 +1394,7 @@ // if inbound message is for a conversation we are currently looking at, mark it as read if(this.tab === "messages" && this.messagesTab === "conversations" - && json.lxmf_message.source_hash === this.selectedPeer.destination_hash){ + && json.lxmf_message.source_hash === this.selectedPeer?.destination_hash){ // find conversation const conversation = this.findConversation(this.selectedPeer.destination_hash);