git » sdk » commit ac64387

If we aren't joined right after resume, force join

author Stephen Paul Weber
2026-08-24 18:36:31 UTC
committer Stephen Paul Weber
2026-08-24 18:36:31 UTC
parent 8f4f9b2954842ffaebb76c522463db9de0c93cc4

If we aren't joined right after resume, force join

So we don't end up in a half-joined state of uncertainty

borogove/Client.hx +2 -1

diff --git a/borogove/Client.hx b/borogove/Client.hx
index 1e47b58..03ae181 100644
--- a/borogove/Client.hx
+++ b/borogove/Client.hx
@@ -1081,7 +1081,8 @@ class Client extends EventEmitter {
 				for (chat in getChats()) {
 					final channel = Std.downcast(chat, Channel);
 					if (channel != null) {
-						channel.inSync = true;
+						channel.inSync = channel.self != null;
+						if (!channel.inSync) channel.join();
 					}
 				}
 			}