mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 11:12:35 +02:00
fix(#1898): keep Telegram link previews, and keep the outcome prompt's failures its own Four follow-ups to the post-print outcome confirmation merged in #3047. Telegram: link previews were switched off for every message rather than only for the outcome prompt, so a print_complete template carrying {finish_photo_url} lost its photo preview whenever the photo was too large to attach. _send_telegram now takes link_preview, and only the prompt turns it off, as the Slack unfurl change already did. Archives: Reset left the new Unconfirmed filter on, so the list stayed narrowed and the button seemed to do nothing. Print start: when the external-print check hit a failed statement, it rolled back the caller's whole transaction, which expired the printer and the just-created archive; on an async session the next read of either raises, and the start notification, energy reading and timelapse baseline were skipped. The check's reads now run in a savepoint, and a failed flag write reloads the archive and printer after its rollback. Print complete: a failed outcome prompt left the notification session needing a rollback, so the per-user print email sent on it next failed too. The dispatch now rolls back on failure.