mirror of
https://git.sr.ht/~rjarry/aerc
synced 2026-03-02 18:23:33 +01:00
The archive() function calls newHelper() which relies on app.SelectedTabContent() to determine the current context. When called from an OnClose callback after sending a reply with archive-on-reply configured, the composer tab is already closed and the user may have switched accounts, causing a crash. Pass the account and store directly to archive() from the calling context instead of querying the current UI state. Changelog-fixed: Crash when switching accounts quickly after sending a reply with archive-on-reply enabled. Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com> Acked-by: Robin Jarry <robin@jarry.cc>