Preact: Improve room leave handling (#2442)

This commit is contained in:
Distrib 2025-05-27 02:01:24 +02:00 committed by GitHub
parent 9165bb48d7
commit 482bee7d2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1652,7 +1652,7 @@ export class PSRoom extends PSStreamModel<Args | null> implements RoomOptions {
}
destroy() {
if (this.connected === true) {
this.sendDirect('/noreply /leave');
this.sendDirect(`/noreply /leave ${this.id}`);
this.connected = false;
}
}