git » sdk » commit 7114f57

No presence sub for MUC, Open is as close as we get to trusted

author Stephen Paul Weber
2024-11-27 18:51:22 UTC
committer Stephen Paul Weber
2024-11-27 18:51:22 UTC
parent 8dc4670fc3d36b4c0418b109d81734800aa31f90

No presence sub for MUC, Open is as close as we get to trusted

snikket/Chat.hx +4 -0

diff --git a/snikket/Chat.hx b/snikket/Chat.hx
index ea9efdd..e808d64 100644
--- a/snikket/Chat.hx
+++ b/snikket/Chat.hx
@@ -1068,6 +1068,10 @@ class Channel extends Chat {
 		sync.fetchNext();
 	}
 
+	override public function isTrusted() {
+		return uiState != Closed;
+	}
+
 	@:allow(snikket)
 	private function refreshDisco(?callback: ()->Void) {
 		final discoGet = new DiscoInfoGet(chatId);