Fix {{currentSwipeId}} not returning first swipe

21c064fc5bc8b21416fe289ec9aee2fd8ce8be69

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/macros.js+1 -1
@@ -254,7 +254,7 @@ function getCurrentSwipeId() {
254 // For swipe macro, we are accepting using the message that is currently being swiped254 // For swipe macro, we are accepting using the message that is currently being swiped
255 const mid = getLastMessageId({ exclude_swipe_in_propress: false });255 const mid = getLastMessageId({ exclude_swipe_in_propress: false });
256 const swipeId = chat[mid]?.swipe_id;256 const swipeId = chat[mid]?.swipe_id;
257 return swipeId ? swipeId + 1 : null;257 return swipeId !== null ? swipeId + 1 : null;
258}258}
259259
260/**260/**