Skip to content

Commit

Permalink
Fixed equality in case of pubkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Jun 4, 2024
1 parent 62ea016 commit c0c4d2c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/signals/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@holochain-open-dev/signals",
"version": "0.300.0-rc.1",
"version": "0.300.0-rc.3",
"description": "Holochain async-signals to build reusable holochain-open-dev modules",
"author": "[email protected]",
"main": "dist/index.js",
Expand All @@ -22,9 +22,9 @@
"@holochain-open-dev/utils": "^0.300.0-rc.0",
"@holochain/client": "^0.17.0-rc",
"@shoelace-style/shoelace": "^2.11.2",
"async-signals": "^0.1.9",
"lit-signal-watcher": "^0.1.0",
"signal-polyfill": "^0.1.0"
"async-signals": "^0.1.10",
"lit-signal-watcher": "^0.1.1",
"signal-polyfill": "^0.1.1"
},
"devDependencies": {
"@types/lodash-es": "^4.17.6",
Expand Down
8 changes: 6 additions & 2 deletions packages/signals/src/holochain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,12 @@ export function liveLinksSignal<
if (hcSignal.type === 'LinkCreated') {
if (
linkType === hcSignal.link_type &&
hcSignal.action.hashed.content.base_address.toString() ===
innerBaseAddress.toString()
(hcSignal.action.hashed.content.base_address.toString() ===
innerBaseAddress.toString() ||
retype(
hcSignal.action.hashed.content.base_address,
HashType.AGENT,
).toString() === innerBaseAddress.toString())
) {
const lastLinks = links ? links : [];
maybeSet([...lastLinks, createLinkToLink(hcSignal.action)]);
Expand Down

0 comments on commit c0c4d2c

Please sign in to comment.