throw an error if getSwarmNodes cannot find the conversation

pull/1183/head
Audric Ackermann 5 years ago
parent ae67f424a3
commit cf94961736
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -772,6 +772,9 @@ class LokiSnodeAPI {
const { fetchHashes } = options;
try {
const conversation = ConversationController.get(pubKey);
if (!conversation) {
throw new Error('Could not find conversation ', pubKey);
}
const swarmNodes = [...conversation.get('swarmNodes')];
// always? include lashHash

Loading…
Cancel
Save