[bug] Correctly iterate on members addresses in checkConnection
This commit is contained in:
parent
0d51f9d056
commit
a3fe29e4a0
@ -203,7 +203,9 @@ export default class Services {
|
||||
let unconnectedAddresses = [];
|
||||
const myAddress = await this.getDeviceAddress();
|
||||
for (const member of members) {
|
||||
for (const address of member.sp_addresses) {
|
||||
const sp_addresses = this.getAddressesForMemberId(member);
|
||||
if (!sp_addresses || sp_addresses.length === 0) continue;
|
||||
for (const address of sp_addresses) {
|
||||
// For now, we ignore our own device address, although there might be use cases for having a secret with ourselves
|
||||
if (address === myAddress) continue;
|
||||
const sharedSecret = await this.getSecretForAddress(address);
|
||||
|
Loading…
x
Reference in New Issue
Block a user