Use updated waitFor
API with well-known
This commit is contained in:
parent
e56a61ec68
commit
2e2f60c20b
2 changed files with 2 additions and 10 deletions
|
@ -23,14 +23,6 @@ export interface IE2EEWellKnown {
|
|||
default?: boolean;
|
||||
}
|
||||
|
||||
export async function ensureClientWellKnown() {
|
||||
const cli = MatrixClientPeg.get();
|
||||
if (cli.haveAttemptedFetchingClientWellKnown()) return;
|
||||
return new Promise(resolve => {
|
||||
cli.once("WellKnown.attempted", resolve);
|
||||
});
|
||||
}
|
||||
|
||||
export function getE2EEWellKnown(): IE2EEWellKnown {
|
||||
const clientWellKnown = MatrixClientPeg.get().getClientWellKnown();
|
||||
if (clientWellKnown && clientWellKnown[E2EE_WK_KEY]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue