Fix Jitsi wellknown hooks some more
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
a674131a8c
commit
d92f742205
|
@ -37,11 +37,8 @@ export class Jitsi {
|
||||||
public start() {
|
public start() {
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
cli.on("WellKnown.client", this.update);
|
cli.on("WellKnown.client", this.update);
|
||||||
const discoveryResponse = cli.getClientWellKnown();
|
// call update initially in case we missed the first WellKnown.client event and for if no well-known present
|
||||||
if (discoveryResponse) {
|
this.update(cli.getClientWellKnown());
|
||||||
// if we missed the first WellKnown.client event then call update anyway
|
|
||||||
this.update(discoveryResponse);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private update = async (discoveryResponse): Promise<any> => {
|
private update = async (discoveryResponse): Promise<any> => {
|
||||||
|
|
Loading…
Reference in New Issue