diff --git a/services/gunDB/contact-api/events/index.js b/services/gunDB/contact-api/events/index.js index c420862b..9c85b218 100644 --- a/services/gunDB/contact-api/events/index.js +++ b/services/gunDB/contact-api/events/index.js @@ -424,7 +424,11 @@ const processChats = debounce(() => { newChats.push(chat) } - currentChats = newChats + currentChats = newChats.filter( + c => + // initial state, means non connected + typeof pubToFeed[c.recipientPublicKey] !== 'undefined' + ) notifyChatsListeners() }, 750)