git » sdk » commit 03034f3

Chat updates after messages

author Stephen Paul Weber
2025-10-22 04:45:58 UTC
committer Stephen Paul Weber
2025-10-22 04:45:58 UTC
parent 14a21ff47f5a73b1d15cf067a62b359cdfd7db1d

Chat updates after messages

So the chat can check lastMessage correctly

borogove/Chat.hx +1 -1

diff --git a/borogove/Chat.hx b/borogove/Chat.hx
index 8316fca..b176062 100644
--- a/borogove/Chat.hx
+++ b/borogove/Chat.hx
@@ -913,8 +913,8 @@ class DirectChat extends Chat {
 						#end
 					}
 					setLastMessage(message.build());
-					client.trigger("chats/update", [this]);
 					client.notifyMessageHandlers(stored[0], stored[0].versions.length > 1 ? CorrectionEvent : DeliveryEvent);
+					client.trigger("chats/update", [this]);
 				});
 			case ReactionUpdateStanza(update):
 				persistence.storeReaction(client.accountId(), update).then((stored) -> {