Skip to content

Commit

Permalink
fix: cardano connect stop showing newly joined group identifier in list
Browse files Browse the repository at this point in the history
  • Loading branch information
iFergal committed Sep 12, 2024
1 parent 27e2f2f commit b383fc1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/core/agent/agent.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ interface AgentServicesProps {
interface CreateIdentifierResult {
signifyName: string;
identifier: string;
multisigManageAid?: string;
isPending?: boolean;
}

Expand Down
1 change: 1 addition & 0 deletions src/core/agent/services/multiSigService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ describe("Multisig sig service of agent", () => {
).toEqual({
identifier: multisigIdentifier,
isPending: true,
multisigManageAid: "id",
signifyName: expect.any(String),
});

Expand Down
7 changes: 6 additions & 1 deletion src/core/agent/services/multiSigService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,12 @@ class MultiSigService extends AgentService {
notificationId,
notificationRoute
);
return { identifier: multisigId, signifyName, isPending };
return {
identifier: multisigId,
multisigManageAid: identifier.id,
signifyName,
isPending,
};
}

@OnlineOnly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const MultiSigRequest = ({
"Cannot accept a multi-sig inception event before details are loaded from core"
);
} else {
const { identifier, signifyName, isPending } =
const { identifier, multisigManageAid, signifyName, isPending } =
(await Agent.agent.multiSigs.joinMultisig(
notificationDetails.id,
notificationDetails.a.r as NotificationRoute,
Expand All @@ -121,6 +121,7 @@ const MultiSigRequest = ({
createdAtUTC: `${notificationDetails?.createdAt}`,
theme: multisigIcpDetails.ourIdentifier.theme,
isPending: !!isPending,
multisigManageAid,
signifyName,
};
const filteredIdentifiersData = identifiersData.filter(
Expand Down

0 comments on commit b383fc1

Please sign in to comment.