git » sdk » commit dd36080

If stanza for this error isn't present, don't exception

author Stephen Paul Weber
2025-12-01 15:07:15 UTC
committer Stephen Paul Weber
2025-12-01 15:07:15 UTC
parent 18e3a9730649b5f37953b2b5cd054c9d54f78b49

If stanza for this error isn't present, don't exception

borogove/Chat.hx +1 -1
borogove/Client.hx +1 -1

diff --git a/borogove/Chat.hx b/borogove/Chat.hx
index 7c3ef75..cb6511f 100644
--- a/borogove/Chat.hx
+++ b/borogove/Chat.hx
@@ -1488,7 +1488,7 @@ class Channel extends Chat {
 							localId,
 							MessageFailedToSend,
 							stanza.getErrorText(),
-						).then(m -> [m]));
+						).then(m -> [m], _ -> []));
 					default:
 						// ignore
 				}
diff --git a/borogove/Client.hx b/borogove/Client.hx
index d12538b..69ff722 100644
--- a/borogove/Client.hx
+++ b/borogove/Client.hx
@@ -1766,7 +1766,7 @@ class Client extends EventEmitter {
 							localId,
 							MessageFailedToSend,
 							stanza.getErrorText(),
-						).then(m -> [m]));
+						).then(m -> [m], _ -> []));
 					case MucInviteStanza(serverId, serverIdBy, reason, password):
 						mucInvite(m.chatId, getChat(m.chatId), m.senderId, m.threadId, serverId, serverIdBy, reason, password);
 					default: