Fix {{currentSwipeId}} not returning first swipe

This commit is contained in:
Wolfsblvt 2024-07-02 01:28:52 +02:00
parent c91e7dd948
commit 21c064fc5b
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ function getCurrentSwipeId() {
// For swipe macro, we are accepting using the message that is currently being swiped
const mid = getLastMessageId({ exclude_swipe_in_propress: false });
const swipeId = chat[mid]?.swipe_id;
return swipeId ? swipeId + 1 : null;
return swipeId !== null ? swipeId + 1 : null;
}
/**