git » sdk » commit d8d158d

Use the Stanza.parse helper

author Stephen Paul Weber
2025-06-24 17:56:18 UTC
committer Stephen Paul Weber
2025-06-24 17:56:18 UTC
parent f08aa97b0c00b94b91f214f0428244a37644bd97

Use the Stanza.parse helper

snikket/Chat.hx +1 -1

diff --git a/snikket/Chat.hx b/snikket/Chat.hx
index 09b8b2a..7bbbb10 100644
--- a/snikket/Chat.hx
+++ b/snikket/Chat.hx
@@ -1595,7 +1595,7 @@ class SerializedChat {
 	}
 
 	public function toChat(client: Client, stream: GenericStream, persistence: Persistence) {
-		final extensionsStanza = Stanza.fromXml(Xml.parse(extensions));
+		final extensionsStanza = Stanza.parse(extensions);
 		var filterN = notificationsFiltered ?? false;
 		var mention = notifyMention;