Make more of the codebase conform to strict types (#10857)
This commit is contained in:
parent
7f017a84c2
commit
6a3f59cc76
45 changed files with 127 additions and 121 deletions
|
@ -16,6 +16,7 @@ limitations under the License.
|
|||
|
||||
import { IThreepid, ThreepidMedium } from "matrix-js-sdk/src/@types/threepids";
|
||||
import { MatrixClient } from "matrix-js-sdk/src/client";
|
||||
import { MatrixError } from "matrix-js-sdk/src/http-api";
|
||||
|
||||
import IdentityAuthClient from "./IdentityAuthClient";
|
||||
|
||||
|
@ -57,7 +58,7 @@ export async function getThreepidsWithBindStatus(
|
|||
}
|
||||
} catch (e) {
|
||||
// Ignore terms errors here and assume other flows handle this
|
||||
if (e.errcode !== "M_TERMS_NOT_SIGNED") {
|
||||
if (!(e instanceof MatrixError) || e.errcode !== "M_TERMS_NOT_SIGNED") {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue