Merge pull request #3953 from Samueras/release
Signed| @@ -9151,7 +9151,7 @@ function formatSwipeCounter(current, total) { | ||
| 9151 | 9151 | * @param {string} [params.source] The source of the swipe event. |
| 9152 | 9152 | * @param {boolean} [params.repeated] Is the swipe event repeated. |
| 9153 | 9153 | */ |
| 9154 | 9154 | export function swipe_left(_event, { source, repeated } = {}) { |
| 9155 | 9155 | if (chat.length - 1 === Number(this_edit_mes_id)) { |
| 9156 | 9156 | closeMessageEditor(); |
| 9157 | 9157 | } |
| @@ -9299,7 +9299,7 @@ function swipe_left(_event, { source, repeated } = {}) { | ||
| 9299 | 9299 | * @param {string} [params.source] The source of the swipe event. |
| 9300 | 9300 | * @param {boolean} [params.repeated] Is the swipe event repeated. |
| 9301 | 9301 | */ |
| 9302 | 9302 | export function swipe_right(_event, { source, repeated } = {}) { |
| 9303 | 9303 | if (chat.length - 1 === Number(this_edit_mes_id)) { |
| 9304 | 9304 | closeMessageEditor(); |
| 9305 | 9305 | } |
| @@ -50,6 +50,8 @@ import { | ||
| 50 | 50 | unshallowCharacter, |
| 51 | 51 | deleteLastMessage, |
| 52 | 52 | getCharacterCardFields, |
| 53 | + swipe_right, | |
| 54 | + swipe_left, | |
| 53 | 55 | } from '../script.js'; |
| 54 | 56 | import { |
| 55 | 57 | extension_settings, |
| @@ -196,6 +198,7 @@ export function getContext() { | ||
| 196 | 198 | humanizedDateTime, |
| 197 | 199 | updateMessageBlock, |
| 198 | 200 | appendMediaToMessage, |
| 201 | + swipe: { left: swipe_left, right: swipe_right }, | |
| 199 | 202 | variables: { |
| 200 | 203 | local: { |
| 201 | 204 | get: getLocalVariable, |