From ba4b081aa0daa8680f14efa8accda7dd547c8708 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 19 Mar 2023 19:43:57 +0530 Subject: [PATCH] bug fixes --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 143499a..0b1e7ec 100644 --- a/index.html +++ b/index.html @@ -3022,7 +3022,7 @@ chatCard.querySelector('.name').textContent = name } const topChatCard = getRef('chats_list').children[0] - if (chatAddress !== topChatCard.dataset.floAddress && chatAddress !== floCrypto.toFloID(topChatCard.dataset.floAddress)) { + if (chatAddress !== topChatCard.dataset.floAddress || chatAddress !== floCrypto.toFloID(topChatCard.dataset.floAddress)) { const cloneContact = chatCard.cloneNode(true) chatCard.remove() getRef('chats_list').animate([ @@ -3044,7 +3044,7 @@ } else { const chatType = floID ? 'chat' : groupID ? 'group' : 'pipeline' if (floID) { - if (!(floID in messenger.chats) && !(floCrypto.toFloID(floID) in messenger.chats)) { + if (!(floID in messenger.chats) || !(floCrypto.toFloID(floID) in messenger.chats)) { await messenger.addChat(floID).catch(err => console.error(err)) } }