Fix history. Fix invitation accept

This commit is contained in:
2026-05-04 09:28:23 +00:00
parent f978d740fe
commit 7ffb5c44b5
2 changed files with 40 additions and 153 deletions

View File

@@ -85,8 +85,11 @@ export class Invitation extends EventEmitter<InvitationEventMap> {
throw new Error(`Template not found: ${invitation.templateIdentifier}`);
}
// engine invitation (I have no idea if this is required)
const engineInvitation = await dependencies.engine.acceptInvitation(invitation);
// Create the invitation
const invitationInstance = new Invitation(invitation, dependencies);
const invitationInstance = new Invitation(engineInvitation, dependencies);
// Start the invitation and its tracking
await invitationInstance.start();