From dbdde07062e709c85dd16de23649c2d2e84798eb Mon Sep 17 00:00:00 2001 From: Beaudan Date: Wed, 13 Mar 2019 10:35:05 +1100 Subject: [PATCH] Allow conversation symbol to generate while swarm nodes are being retrieved --- js/conversation_controller.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/conversation_controller.js b/js/conversation_controller.js index 8a71f1136..311f03d00 100644 --- a/js/conversation_controller.js +++ b/js/conversation_controller.js @@ -205,9 +205,11 @@ }; conversation.initialPromise = create(); - conversation.initialPromise.then(async () => { - await window.lokiSnodeAPI.refreshSwarmNodesForPubKey(id); - await conversation.updateProfileAvatar(); + conversation.initialPromise.then(() => { + Promise.all([ + conversation.updateProfileAvatar(), + window.lokiSnodeAPI.refreshSwarmNodesForPubKey(id), + ]); }); return conversation;