From 0ff716db08536109d8e98ad0a880eafe2dc90443 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Thu, 20 Feb 2020 15:31:29 -0400 Subject: [PATCH] getChats() --- services/gunDB/contact-api/events/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/gunDB/contact-api/events/index.js b/services/gunDB/contact-api/events/index.js index 21566c55..a6679a1d 100644 --- a/services/gunDB/contact-api/events/index.js +++ b/services/gunDB/contact-api/events/index.js @@ -436,6 +436,8 @@ const onOutgoing = cb => { /** @type {Chat[]} */ let currentChats = [] +export const getChats = () => currentChats + /** @type {Set} */ const chatsListeners = new Set()