1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2026-02-20 15:05:22 +01:00
aerc/commands/msg
Bence Ferdinandy cb6d302cca archive: pass account and store to archive function
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>
2026-02-09 14:50:56 +01:00
..
archive.go archive: pass account and store to archive function 2026-02-09 14:50:56 +01:00
bounce.go messages: generalize cancellation context 2026-02-09 14:46:27 +01:00
copy.go messages: generalize cancellation context 2026-02-09 14:46:27 +01:00
delete.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
envelope.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
fold.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
forward.go messages: generalize cancellation context 2026-02-09 14:46:27 +01:00
invite.go archive: pass account and store to archive function 2026-02-09 14:50:56 +01:00
mark.go mark: fix panic on incomplete message 2026-01-07 11:07:34 +01:00
modify-labels.go commands: allow positional arguments starting with "-" 2025-03-31 16:35:54 +02:00
move.go messages: generalize cancellation context 2026-02-09 14:46:27 +01:00
pipe.go messages: generalize cancellation context 2026-02-09 14:46:27 +01:00
read.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
recall.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
reply.go archive: pass account and store to archive function 2026-02-09 14:50:56 +01:00
toggle-thread-context.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
toggle-threads.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
unsubscribe.go lib: rename auth to authres 2026-02-09 14:46:27 +01:00
unsubscribe_test.go treewide: run go modernize 2025-12-20 18:06:30 +01:00
utils.go config: add contextual viewer configuration 2025-10-30 21:17:44 +01:00