Export Swipe left and right

Exporting the swipe_left and the swipe_right functions
This commit is contained in:
Samueras
2025-05-04 18:15:28 +02:00
committed by GitHub
parent 3165537ce8
commit 99f47de88b

View File

@ -9105,7 +9105,7 @@ function formatSwipeCounter(current, total) {
* @param {string} [params.source] The source of the swipe event.
* @param {boolean} [params.repeated] Is the swipe event repeated.
*/
function swipe_left(_event, { source, repeated } = {}) {
export function swipe_left(_event, { source, repeated } = {}) {
if (chat.length - 1 === Number(this_edit_mes_id)) {
closeMessageEditor();
}
@ -9253,7 +9253,7 @@ function swipe_left(_event, { source, repeated } = {}) {
* @param {string} [params.source] The source of the swipe event.
* @param {boolean} [params.repeated] Is the swipe event repeated.
*/
function swipe_right(_event, { source, repeated } = {}) {
export function swipe_right(_event, { source, repeated } = {}) {
if (chat.length - 1 === Number(this_edit_mes_id)) {
closeMessageEditor();
}