From 963b6446c5c627b3efe2fd2a0d27776af6d6e402 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 28 Apr 2021 10:57:36 -0400 Subject: [PATCH] Factor out for easier debugging --- services/gunDB/contact-api/events/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/gunDB/contact-api/events/index.js b/services/gunDB/contact-api/events/index.js index d046c7eb..8e5da91e 100644 --- a/services/gunDB/contact-api/events/index.js +++ b/services/gunDB/contact-api/events/index.js @@ -468,8 +468,9 @@ const processChats = debounce(() => { const pubToAvatar = Streams.getPubToAvatar() const pubToDn = Streams.getPubToDn() const pubToLastSeenApp = Streams.getPubToLastSeenApp() + const currentOutgoings = getCurrentOutgoings() const existingOutgoings = /** @type {[string, Outgoing][]} */ (Object.entries( - getCurrentOutgoings() + currentOutgoings ).filter(([_, o]) => o !== null)) const pubToFeed = Streams.getPubToFeed()