From 9d960fcd96e622c9f5d9e26682b49dfc163972d7 Mon Sep 17 00:00:00 2001 From: Nicolas Luck Date: Thu, 19 Dec 2024 15:47:06 +0100 Subject: [PATCH 1/2] Fix bug introduced in https://github.com/coasys/ad4m/pull/532 --- connect/src/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect/src/core.ts b/connect/src/core.ts index 60de86fcd..bebe69a61 100644 --- a/connect/src/core.ts +++ b/connect/src/core.ts @@ -326,7 +326,7 @@ export default class Ad4mConnect { }, connected: () => { this.notifyConnectionChange("connected"); - this.notifyAuthChange("authenticated"); + this.checkAuth(); }, closed: async () => { if (!this.requestedRestart) { From 057915953ea9632c12c73a1c84ee8bfd7096bdec Mon Sep 17 00:00:00 2001 From: Nicolas Luck Date: Thu, 19 Dec 2024 15:50:36 +0100 Subject: [PATCH 2/2] changelog --- CHANGELOG | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 86352ddc9..34d55e412 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -44,7 +44,7 @@ This project _loosely_ adheres to [Semantic Versioning](https://semver.org/spec/ - ad4m.expression.get() handles literal values client-side to avoid roundtrips, can be overridden with optional flag [PR#498](https://github.com/coasys/ad4m/pull/498) - Update to Holochain 0.3.2-rc1 [PR#506](https://github.com/coasys/ad4m/pull/506) - Make Prolog engine update O(1) in case of only having link additions [PR#510](https://github.com/coasys/ad4m/pull/510) -- Have Ad4mConnect set `authState` to `authenticated` on successful connection [PR#532](https://github.com/coasys/ad4m/pull/532) +- Have Ad4mConnect set `authState` to `authenticated` on successful connection [PR#532](https://github.com/coasys/ad4m/pull/532) & [PR#543](https://github.com/coasys/ad4m/pull/543) ## [0.9.0] - 23/03/2024