[bug] strict equality for address comparison

This commit is contained in:
NicolasCantu 2025-06-04 09:10:12 +02:00
parent 89e9b3e4e0
commit a8b3631dc1

View File

@ -206,7 +206,7 @@ export default class Services {
for (const member of members) {
for (const address of member.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;
if (address === myAddress) continue;
const sharedSecret = await this.getSecretForAddress(address);
if (!sharedSecret) {
unconnectedAddresses.push(address);