git » sdk » commit 8e8c773

Always make a chat with our own server

author Stephen Paul Weber
2026-04-23 03:37:27 UTC
committer Stephen Paul Weber
2026-04-23 03:37:27 UTC
parent cd103909ced962090565e04c9cba59d5a78b3150

Always make a chat with our own server

To show it as an app, etc

borogove/Client.hx +1 -0

diff --git a/borogove/Client.hx b/borogove/Client.hx
index 3eee7ac..e892c45 100644
--- a/borogove/Client.hx
+++ b/borogove/Client.hx
@@ -745,6 +745,7 @@ class Client extends EventEmitter {
 				chats.push(oneProtoChat.toChat(this, stream, persistence));
 			}
 			getDirectChat(accountId()); // Ensure self chat exists
+			getDirectChat(JID.parse(accountId()).domain); // Ensure server chat exists
 			return persistence.getChatsUnreadDetails(accountId(), chats);
 		}).then((details) -> {
 			for (detail in details) {