From 3ce2d30df2cf511e1126303e453466e9f9110999 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 18 Dec 2024 18:50:39 +0000 Subject: [PATCH] Update import Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/models/MSC3089TreeSpace.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/MSC3089TreeSpace.ts b/src/models/MSC3089TreeSpace.ts index 6de3a05fd50..02d573106ec 100644 --- a/src/models/MSC3089TreeSpace.ts +++ b/src/models/MSC3089TreeSpace.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import promiseRetry from "p-retry"; +import { AbortError } from "p-retry"; import { MatrixClient } from "../client.ts"; import { EventType, MsgType, UNSTABLE_MSC3089_BRANCH, UNSTABLE_MSC3089_LEAF } from "../@types/event.ts"; @@ -150,7 +150,7 @@ export class MSC3089TreeSpace { await this.client.invite(this.roomId, userId).catch((e) => { // We don't want to retry permission errors forever... if (e?.errcode === "M_FORBIDDEN") { - throw new promiseRetry.AbortError(e); + throw new AbortError(e); } throw e; });