fix for nullable var

This commit is contained in:
liamcottle
2024-07-07 22:26:54 +12:00
parent 70bf316aeb
commit b25570232f

View File

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