git » sdk » commit decb4de

If we don't know any sortId then we're not in sync

author Stephen Paul Weber
2026-09-16 20:05:55 UTC
committer Stephen Paul Weber
2026-09-16 20:05:55 UTC
parent 79c3373d5e2779bcd23106a8f17aad2977afd3db

If we don't know any sortId then we're not in sync

borogove/Chat.hx +1 -0
borogove/Client.hx +1 -1

diff --git a/borogove/Chat.hx b/borogove/Chat.hx
index 94738f9..738ae1c 100644
--- a/borogove/Chat.hx
+++ b/borogove/Chat.hx
@@ -1498,6 +1498,7 @@ class Channel extends Chat {
 	private var mavUntil = null;
 	@:allow(borogove.SerializedChat)
 	private var membersForName: Null<Array<{id: String, displayName: String}>> = [];
+	@:allow(borogove)
 	private var sortId = null;
 	private var lastMessageSenderName = null;
 
diff --git a/borogove/Client.hx b/borogove/Client.hx
index 7496205..fd19b8a 100644
--- a/borogove/Client.hx
+++ b/borogove/Client.hx
@@ -1101,7 +1101,7 @@ class Client extends EventEmitter {
 				// We resumed from disk so these must have been synced before
 				// and will get anything since live
 				for (channel in getChannels()) {
-					channel.inSync = channel.self != null;
+					channel.inSync = channel.self != null && channel.sortId != null;
 					if (!channel.inSync) channel.join();
 				}
 			}