filter unconnected on first contact request

This commit is contained in:
Daniel Lugo 2020-02-13 18:55:23 -04:00
parent 80481f77fe
commit 74fa91c1b0

View file

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