From 8ff647e3cd4669bc3b8e1d90c81199eb7c632958 Mon Sep 17 00:00:00 2001 From: Beaudan Date: Tue, 16 Apr 2019 08:41:31 +1000 Subject: [PATCH] Return instead of await --- js/modules/data.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/modules/data.js b/js/modules/data.js index 768eb9530..9fb5d1f07 100644 --- a/js/modules/data.js +++ b/js/modules/data.js @@ -921,13 +921,11 @@ async function getMessagesByConversation( } async function getLastHashBySnode(snode) { - const lastHash = await channels.getLastHashBySnode(snode); - return lastHash; + return channels.getLastHashBySnode(snode); } async function getSeenMessagesByHashList(hashes) { - const seenMessages = await channels.getSeenMessagesByHashList(hashes); - return seenMessages; + return channels.getSeenMessagesByHashList(hashes); } async function removeAllMessagesInConversation(