mirror of
https://git.sr.ht/~rjarry/aerc
synced 2026-02-20 15:05:22 +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> |
||
|---|---|---|
| .. | ||
| archive.go | ||
| bounce.go | ||
| copy.go | ||
| delete.go | ||
| envelope.go | ||
| fold.go | ||
| forward.go | ||
| invite.go | ||
| mark.go | ||
| modify-labels.go | ||
| move.go | ||
| pipe.go | ||
| read.go | ||
| recall.go | ||
| reply.go | ||
| toggle-thread-context.go | ||
| toggle-threads.go | ||
| unsubscribe.go | ||
| unsubscribe_test.go | ||
| utils.go | ||