git » sdk » commit bf5258b

If join failed we aren't syncing

author Stephen Paul Weber
2026-06-03 00:33:12 UTC
committer Stephen Paul Weber
2026-06-03 00:33:12 UTC
parent 612216bd40d594ccbcbac3d446f2329bc7ba7ad6

If join failed we aren't syncing

Even if we're still trying we know it has/will fail.

borogove/Chat.hx +4 -1

diff --git a/borogove/Chat.hx b/borogove/Chat.hx
index ff6c49c..3446948 100644
--- a/borogove/Chat.hx
+++ b/borogove/Chat.hx
@@ -1520,6 +1520,7 @@ class Channel extends Chat {
 		}
 
 		return persistence.clearMemberPresence(client.accountId(), chatId).then(_ -> {
+			joinFailed = null;
 			self = null;
 			outbox.pause();
 			inSync = false;
@@ -1889,7 +1890,9 @@ class Channel extends Chat {
 	}
 
 	override public function syncing() {
-		return sync != null || (!livePresence() && joinFailed == null);
+		if (joinFailed != null) return false;
+
+		return sync != null || !livePresence();
 	}
 
 	override private function setLastMessage(message:Null<ChatMessage>) {