diff options
author | Ben Burwell <ben@benburwell.com> | 2019-07-03 16:10:16 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2019-07-04 22:03:04 -0400 |
commit | 91529df0fecc68d5b0fdbb682529ee545884e7c5 (patch) | |
tree | 45b64884521d2df84dc057c99919f03240600344 /widgets/providesmessage.go | |
parent | f9f523ad59491eda08003ce2ccc6d57d7f19ea1e (diff) |
Factor UI models out of the worker message package
Before, the information needed to display different parts of the UI was
tightly coupled to the specific messages being sent back and forth to
the backend worker. Separating out a models package allows us to be more
specific about exactly what a backend is able to and required to
provide for the UI.
Diffstat (limited to 'widgets/providesmessage.go')
-rw-r--r-- | widgets/providesmessage.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/providesmessage.go b/widgets/providesmessage.go index 7be8e7e..cff546b 100644 --- a/widgets/providesmessage.go +++ b/widgets/providesmessage.go @@ -3,12 +3,12 @@ package widgets import ( "git.sr.ht/~sircmpwn/aerc/lib" "git.sr.ht/~sircmpwn/aerc/lib/ui" - "git.sr.ht/~sircmpwn/aerc/worker/types" + "git.sr.ht/~sircmpwn/aerc/models" ) type ProvidesMessage interface { ui.Drawable Store() *lib.MessageStore - SelectedMessage() *types.MessageInfo + SelectedMessage() *models.MessageInfo SelectedAccount() *AccountView } |