git » sdk » commit 581a333

A channel's caps are not the caps of the participants

author Stephen Paul Weber
2025-06-25 19:03:04 UTC
committer Stephen Paul Weber
2025-06-25 19:03:04 UTC
parent 15d8adf71c729eb428650bf42f172b8a642182b8

A channel's caps are not the caps of the participants

snikket/Chat.hx +10 -0

diff --git a/snikket/Chat.hx b/snikket/Chat.hx
index 7bbbb10..ce22088 100644
--- a/snikket/Chat.hx
+++ b/snikket/Chat.hx
@@ -1068,6 +1068,16 @@ class Channel extends Chat {
 		persistence.lastId(client.accountId(), chatId, doSync);
 	}
 
+	@:allow(snikket)
+	override private function getCaps():KeyValueIterator<String, Caps> {
+		return {
+			hasNext: () -> false,
+			next: () -> {
+				return { key: "", value: null };
+			}
+		};
+	}
+
 	override public function setPresence(resource:String, presence:Presence) {
 		final oneTen = presence?.mucUser?.allTags("status").find((status) -> status.attr.get("code") == "110");
 		if (oneTen != null) {