| 254 | // For swipe macro, we are accepting using the message that is currently being swiped | 254 | // 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 | } |
| 259 | | 259 | |
| 260 | /** | 260 | /** |