diff --git a/js/modules/loki_message_api.js b/js/modules/loki_message_api.js index 6f9dbe7b8..9a6f08e15 100644 --- a/js/modules/loki_message_api.js +++ b/js/modules/loki_message_api.js @@ -153,7 +153,11 @@ class LokiMessageAPI { } catch (e) { if (e instanceof textsecure.WrongDifficultyError) { // Force nonce recalculation - this.sendMessage(pubKey, data, messageTimeStamp, ttl, options); + // NOTE: Currently if there are snodes with conflicting difficulties we + // will send the message twice (or more). Won't affect client side but snodes + // could store the same message multiple times because they will have different + // timestamps (and therefore nonces) + await this.sendMessage(pubKey, data, messageTimeStamp, ttl, options); return; } throw e;