fix: sync swipes only when chat is not pristine to ensure macro resolution (#5106)

This commit is contained in:
Cohee
2026-02-08 02:35:14 +02:00
committed by GitHub
parent 9f4449973b
commit bee4d9a818
+4 -1
View File
@@ -6708,7 +6708,10 @@ export function syncMesToSwipe(messageId = null) {
return false;
}
targetMessage.swipes[targetMessage.swipe_id] = targetMessage.mes;
// Only sync swipes if the chat is not pristine, so that macros in the greeting can resolve again on swipe
if (chat_metadata.tainted || chat.length > 1) {
targetMessage.swipes[targetMessage.swipe_id] = targetMessage.mes;
}
targetSwipeInfo.send_date = targetMessage.send_date;
targetSwipeInfo.gen_started = targetMessage.gen_started;