fix: bind Telegram download wizard buttons to current message (v2.4.7)

This commit is contained in:
hicocos committed 2026-10-04 11:05:02 +08:00
1 parent e4dfa7968d
commit d96706ff27
5 files changed
+11 -7

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "tg-vault-backend",
"version": "2.4.6",
"version": "2.4.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "tg-vault-backend",
"version": "2.4.6",
"version": "2.4.7",
"dependencies": {
"@aws-sdk/client-s3": "^3.1075.0",
"@aws-sdk/s3-request-presigner": "^3.1075.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "tg-vault-backend",
"version": "2.4.6",
"version": "2.4.7",
"type": "module",
"scripts": {
"dev": "tsx watch src/index.ts",
+5 -1
View File
@@ -730,7 +730,11 @@ async function handleTelegramWizardMessage(message: Api.Message, senderId: numbe
if (state.kind === 'tg_tag' || state.kind === 'tg_date') {
state.step = state.includeComments !== undefined ? (state.kind === 'tg_tag' ? 'tag' : 'start_date') : 'comments';
await message.reply({ message: buildTelegramWizardPrompt(state, locale), buttons: state.step === 'comments' ? buildTelegramCommentsKeyboard(locale) : undefined });
const reply = await message.reply({ message: buildTelegramWizardPrompt(state, locale), buttons: state.step === 'comments' ? buildTelegramCommentsKeyboard(locale) : undefined });
if (state.step === 'comments') {
// Callback validation must bind to the new buttons, not the initial wizard message.
refreshTelegramWizardState(senderId, chatKey, state, (reply as Api.Message).id);
}
return true;
}
return true;
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "tg-vault",
"version": "2.4.6",
"version": "2.4.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "tg-vault",
"version": "2.4.6",
"version": "2.4.7",
"dependencies": {
"@phosphor-icons/react": "2.1.10",
"class-variance-authority": "^0.7.1",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "tg-vault",
"private": true,
"version": "2.4.6",
"version": "2.4.7",
"type": "module",
"scripts": {
"dev": "vite",