git » sdk » commit a9a94e0

OMEMO: Fix message moderation handling (bad merge?)

author Matthew Wild
2025-05-24 14:49:14 UTC
committer Stephen Paul Weber
2025-09-29 13:43:04 UTC
parent 641efc08c4658fc159c115e8a00ce2321a763b56

OMEMO: Fix message moderation handling (bad merge?)

snikket/Client.hx +2 -0

diff --git a/snikket/Client.hx b/snikket/Client.hx
index c98c300..cd42046 100644
--- a/snikket/Client.hx
+++ b/snikket/Client.hx
@@ -648,6 +648,8 @@ class Client extends EventEmitter {
 					fetchMediaByHash([hash], [from]);
 				}
 				persistence.storeReaction(accountId(), update, (stored) -> if (stored != null) notifyMessageHandlers(stored, ReactionEvent));
+			case ModerateMessageStanza(action):
+				moderateMessage(action).then((stored) -> if (stored != null) notifyMessageHandlers(stored, CorrectionEvent));
 			default:
 				// ignore
 				trace("Ignoring non-chat message: " + stanza.toString());