@unicitylabs/sphere-sdk 0.6.6 → 0.6.8-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -12161,7 +12161,12 @@ var CommunicationsModule = class {
12161
12161
  }
12162
12162
  return;
12163
12163
  }
12164
- if (msg.senderTransportPubkey === this.deps?.identity.chainPubkey) return;
12164
+ const ownChainPubkey = this.deps?.identity.chainPubkey;
12165
+ if (ownChainPubkey) {
12166
+ const tp = msg.senderTransportPubkey;
12167
+ if (tp === ownChainPubkey) return;
12168
+ if (ownChainPubkey.length === 66 && (ownChainPubkey.startsWith("02") || ownChainPubkey.startsWith("03")) && tp === ownChainPubkey.slice(2)) return;
12169
+ }
12165
12170
  if (this.messages.has(msg.id)) return;
12166
12171
  const message = {
12167
12172
  id: msg.id,