use .name so we don't need an import

This commit is contained in:
Bruno Windels 2021-11-25 15:42:36 +01:00
parent 229c584138
commit ae7d4d07df
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ export class SessionContainer {
try {
encryptedDehydratedDevice = await getDehydratedDevice(hsApi, olm, this._platform, log);
} catch (err) {
if (err instanceof HomeServerError) {
if (err.name === "HomeServerError") {
log.set("not_supported", true);
} else {
throw err;