fix: sync swipes only when chat is not pristine to ensure macro resolution (#5106)
Signed| @@ -6708,7 +6708,10 @@ export function syncMesToSwipe(messageId = null) { | ||
| 6708 | 6708 | return false; |
| 6709 | 6709 | } |
| 6710 | 6710 | |
| 6711 | + // Only sync swipes if the chat is not pristine, so that macros in the greeting can resolve again on swipe | |
| 6712 | + if (chat_metadata.tainted || chat.length > 1) { | |
| 6711 | 6713 | targetMessage.swipes[targetMessage.swipe_id] = targetMessage.mes; |
| 6714 | + } | |
| 6712 | 6715 | |
| 6713 | 6716 | targetSwipeInfo.send_date = targetMessage.send_date; |
| 6714 | 6717 | targetSwipeInfo.gen_started = targetMessage.gen_started; |