diff options
author | Reto Brunner <reto@labrat.space> | 2020-05-09 11:50:31 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-05-11 09:47:34 -0400 |
commit | ea2646fc039a572491ba8cc8e2879b7bf61c25dd (patch) | |
tree | 3608b8064e4f67f1f53e177ddad2e5f5ae9a49d5 /widgets/providesmessage.go | |
parent | 381c1fc05f6de95accbb520769d0cc9196955cf4 (diff) | |
download | aerc-ea2646fc039a572491ba8cc8e2879b7bf61c25dd.tar.gz |
Change MarkedMessages to return uids
Especially if one tries to interact with all marked messages there could be
the case that not all headers are fetched yet, hence the messageInfo is still nil.
This segfaults a lot of commands which in principle only need the uid to complete.
If we switch to uids, this issue can be alleviated for those commands.
Diffstat (limited to 'widgets/providesmessage.go')
-rw-r--r-- | widgets/providesmessage.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/providesmessage.go b/widgets/providesmessage.go index b06825fa..6e00b1cf 100644 --- a/widgets/providesmessage.go +++ b/widgets/providesmessage.go @@ -25,5 +25,5 @@ type ProvidesMessages interface { Store() *lib.MessageStore SelectedAccount() *AccountView SelectedMessage() (*models.MessageInfo, error) - MarkedMessages() ([]*models.MessageInfo, error) + MarkedMessages() ([]uint32, error) } |