From 64cff4b64b9333c69a873f0a81e5cd59396465af Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 29 Jan 2020 15:09:54 -0400 Subject: [PATCH] filter chats for which we don't know the request status --- services/gunDB/contact-api/events.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/gunDB/contact-api/events.js b/services/gunDB/contact-api/events.js index 4429e34b..aac6c600 100644 --- a/services/gunDB/contact-api/events.js +++ b/services/gunDB/contact-api/events.js @@ -501,7 +501,9 @@ const processChats = () => { } } - currentChats = chats.filter(c => c.messages.length > 0) + currentChats = chats + .filter(c => c.messages.length > 0) + .filter(c => typeof pubToIncoming[c.recipientPublicKey] !== 'undefined') notifyChatsListeners() }