From 04ed91f7e4cf51e13c0057491d64e233a26b0030 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Sat, 15 Feb 2020 16:30:18 -0400 Subject: [PATCH] fix pubtofeed --- services/gunDB/contact-api/streams/pubToFeed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/gunDB/contact-api/streams/pubToFeed.js b/services/gunDB/contact-api/streams/pubToFeed.js index 9995f5bf..463b87ff 100644 --- a/services/gunDB/contact-api/streams/pubToFeed.js +++ b/services/gunDB/contact-api/streams/pubToFeed.js @@ -183,8 +183,8 @@ const react = () => { // pub feed pair fire up again, etc. Now. When the user disconnects from // this side of things. He will overwrite the pub to incoming with null. // Let's allow that. - newIncoming === pubToLastIncoming[pub] || - (pubToFeed[pub] === 'disconnected' && newIncoming !== null) + newIncoming === pubToLastIncoming[pub] && + !(pubToFeed[pub] === 'disconnected' && newIncoming === null) ) { // eslint-disable-next-line no-continue continue