Skip to content

Commit

Permalink
fix: issues with mediator did
Browse files Browse the repository at this point in the history
Signed-off-by: Colton Wolkins (Laptop) <colton@indicio.tech>
  • Loading branch information
TheTechmage committed Mar 11, 2024
1 parent f5ad6b8 commit cd74dcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/wyvern/lib/didcomm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ export class DIDWebResolver implements DIDResolver {
if(value.startsWith("#"))
arr[index] = did + value
});
doc["service"] = doc["service"].filter((s: any) => s.type == "DIDCommMessaging");
console.log("services?", doc["service"])
did_web_cache[did] = doc;
return doc
}
Expand Down
1 change: 1 addition & 0 deletions src/app/wyvern/lib/peer2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ export default class DIDPeer {
return service
})
.map(DIDPeer.transformOldServiceStyleToNew)
.filter((service: any) => {return service.type == "DIDCommMessaging"})

if (!Array.isArray(doc.service)) {
doc.service = [];
Expand Down

0 comments on commit cd74dcc

Please sign in to comment.