mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
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:
commit
8c3e601198
1 changed files with 8 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue