Add support for the soju.im/bouncer-networks-notify cap

This commit is contained in:
Simon Ser
2021-03-10 11:00:33 +01:00
parent 94fba920cd
commit 6524dc5dd2
2 changed files with 50 additions and 19 deletions

View File

@@ -308,6 +308,10 @@ export default class Client extends EventTarget {
capEnd = false;
}
if (!this.params.bouncerNetwork && this.availableCaps["soju.im/bouncer-networks-notify"] !== undefined) {
reqCaps.push("soju.im/bouncer-networks-notify");
}
this.requestCaps(reqCaps);
if (this.status != Client.Status.REGISTERED && capEnd) {