correct chats
This commit is contained in:
parent
8f7792f275
commit
fa8c184b6b
1 changed files with 5 additions and 5 deletions
|
|
@ -424,11 +424,11 @@ const processChats = debounce(() => {
|
||||||
newChats.push(chat)
|
newChats.push(chat)
|
||||||
}
|
}
|
||||||
|
|
||||||
currentChats = newChats
|
currentChats = newChats.filter(
|
||||||
// initial state, means non connected
|
c =>
|
||||||
.filter(c => typeof pubToFeed[c.recipientPublicKey] !== 'undefined')
|
Array.isArray(pubToFeed[c.recipientPublicKey]) ||
|
||||||
// disconnected from this side
|
pubToFeed[c.recipientPublicKey] === 'disconnected'
|
||||||
.filter(c => pubToFeed[c.recipientPublicKey] !== null)
|
)
|
||||||
|
|
||||||
notifyChatsListeners()
|
notifyChatsListeners()
|
||||||
}, 750)
|
}, 750)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue