Return instead of await

pull/267/head
Beaudan 6 years ago
parent 3522513590
commit 8ff647e3cd

@ -921,13 +921,11 @@ async function getMessagesByConversation(
} }
async function getLastHashBySnode(snode) { async function getLastHashBySnode(snode) {
const lastHash = await channels.getLastHashBySnode(snode); return channels.getLastHashBySnode(snode);
return lastHash;
} }
async function getSeenMessagesByHashList(hashes) { async function getSeenMessagesByHashList(hashes) {
const seenMessages = await channels.getSeenMessagesByHashList(hashes); return channels.getSeenMessagesByHashList(hashes);
return seenMessages;
} }
async function removeAllMessagesInConversation( async function removeAllMessagesInConversation(

Loading…
Cancel
Save