Skip to content

Commit

Permalink
Update import
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Dec 18, 2024
1 parent 0f80518 commit 3ce2d30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/MSC3089TreeSpace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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;
});
Expand Down

0 comments on commit 3ce2d30

Please sign in to comment.