git » sdk » commit 3bf6e6b

Opening unknown chats isn't a Jingle thing

author Stephen Paul Weber
2025-10-27 03:02:22 UTC
committer Stephen Paul Weber
2025-10-27 03:02:22 UTC
parent f30574d4e8106a0d6e00cae61af5ca4ab810c5ac

Opening unknown chats isn't a Jingle thing

borogove/Client.hx +1 -1

diff --git a/borogove/Client.hx b/borogove/Client.hx
index a89e078..02973d8 100644
--- a/borogove/Client.hx
+++ b/borogove/Client.hx
@@ -1673,12 +1673,12 @@ class Client extends EventEmitter {
 					for (sid => stanza in sync.jmi) {
 						onMAMJMI(sid, stanza);
 					}
+#end
 					for (chatId => _ in chatIds) {
 						// If this is a message from a prevoiusly unknown direct chat, record the chat
 						final chat = getChat(chatId);
 						if (chat == null) getDirectChat(chatId);
 					}
-#end
 					if (callback != null) callback(true);
 				}
 			},