@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/core/index.cjs +6 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +6 -1
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12010,7 +12010,12 @@ var CommunicationsModule = class {
|
|
|
12010
12010
|
}
|
|
12011
12011
|
return;
|
|
12012
12012
|
}
|
|
12013
|
-
|
|
12013
|
+
const ownChainPubkey = this.deps?.identity.chainPubkey;
|
|
12014
|
+
if (ownChainPubkey) {
|
|
12015
|
+
const tp = msg.senderTransportPubkey;
|
|
12016
|
+
if (tp === ownChainPubkey) return;
|
|
12017
|
+
if (ownChainPubkey.length === 66 && (ownChainPubkey.startsWith("02") || ownChainPubkey.startsWith("03")) && tp === ownChainPubkey.slice(2)) return;
|
|
12018
|
+
}
|
|
12014
12019
|
if (this.messages.has(msg.id)) return;
|
|
12015
12020
|
const message = {
|
|
12016
12021
|
id: msg.id,
|