| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-07-27 18:27:33 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-07-27 18:27:33 UTC |
| parent | 5b6d3ecdc51c7a9fc8c57f06581fb64fb41839c9 |
| borogove/Chat.hx | +2 | -2 |
| borogove/Client.hx | +2 | -2 |
diff --git a/borogove/Chat.hx b/borogove/Chat.hx index 61c33a2..db4e262 100644 --- a/borogove/Chat.hx +++ b/borogove/Chat.hx @@ -1519,13 +1519,13 @@ class Channel extends Chat { } @:allow(borogove) - private function join(): Promise<Any> { + private function join(justCleared = false): Promise<Any> { if (uiState == Invited || uiState == Closed) { // Do not join return Promise.resolve(null); } - return persistence.clearMemberPresence(client.accountId(), chatId).then(_ -> { + return (justCleared ? Promise.resolve(null) : persistence.clearMemberPresence(client.accountId(), chatId)).then(_ -> { joinFailed = null; self = null; outbox.pause(); diff --git a/borogove/Client.hx b/borogove/Client.hx index 4645c9d..ff5bc51 100644 --- a/borogove/Client.hx +++ b/borogove/Client.hx @@ -2344,10 +2344,10 @@ class Client extends EventEmitter { if (channel != null) { if (channel.disco.identities.length < 1) { channel.refreshDisco(() -> { - channel.join(); + channel.join(true); }); } else { - channel.join(); + channel.join(true); haxe.Timer.delay(() -> channel.refreshDisco(), 30000); } }