Merge pull request #1144 from loki-project/neuroscr-pubkeys-dont-matter

Pubkeys don't matter if proxy/onion are off
This commit is contained in:
Ryan Tharp 2020-06-02 18:07:16 -07:00 committed by GitHub
commit 8c3e601198
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -572,6 +572,14 @@ class LokiAppDotNetServerAPI {
// set up pubKey & pubKeyHex properties
// optionally called for mainly file server comms
getPubKeyForUrl() {
if (
!window.lokiFeatureFlags.useSnodeProxy &&
!window.lokiFeatureFlags.useOnionRequests
) {
// pubkeys don't matter
return '';
}
// Hard coded
let pubKeyAB;
if (urlPubkeyMap) {