git » sdk » commit 855de2f

Ensure self chat exists

author Stephen Paul Weber
2025-10-22 15:23:23 UTC
committer Stephen Paul Weber
2025-10-22 15:23:23 UTC
parent 6a4e48c7c2597c6c5e252edc307aa7c45d7a332b

Ensure self chat exists

For getting own name/avatar as a participant etc

borogove/Client.hx +1 -0

diff --git a/borogove/Client.hx b/borogove/Client.hx
index d722668..f9ead61 100644
--- a/borogove/Client.hx
+++ b/borogove/Client.hx
@@ -664,6 +664,7 @@ class Client extends EventEmitter {
 			while ((oneProtoChat = protoChats.pop()) != null) {
 				chats.push(oneProtoChat.toChat(this, stream, persistence));
 			}
+			getDirectChat(accountId()); // Ensure self chat exists
 			return persistence.getChatsUnreadDetails(accountId(), chats);
 		}).then((details) -> {
 			for (detail in details) {