fix: return debounced save in deleteMessage
| @@ -1520,7 +1520,7 @@ export async function deleteMessage(id, swipeDeletionIndex = undefined, askConfi | |||
| 1520 | 1520 | ||
| 1521 | const startIndex = [0, minId].includes(id) ? id : null; | 1521 | const startIndex = [0, minId].includes(id) ? id : null; |
| 1522 | updateViewMessageIds(startIndex); | 1522 | updateViewMessageIds(startIndex); |
| 1523 | await saveChatConditional(); | 1523 | saveChatDebounced(); |
| 1524 | 1524 | ||
| 1525 | if (this_edit_mes_id === id) { | 1525 | if (this_edit_mes_id === id) { |
| 1526 | this_edit_mes_id = undefined; | 1526 | this_edit_mes_id = undefined; |
| @@ -2781,6 +2781,8 @@ async function doMesCut(_, text) { | |||
| 2781 | await deleteMessage(mesIDToCut, null, false); | 2781 | await deleteMessage(mesIDToCut, null, false); |
| 2782 | } | 2782 | } |
| 2783 | 2783 | ||
| 2784 | await saveChatConditional(); | ||
| 2785 | |||
| 2784 | return cutText; | 2786 | return cutText; |
| 2785 | } | 2787 | } |
| 2786 | 2788 | ||