You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Use updated waitFor API with well-known
This commit is contained in:
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user