aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/aerc.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-12-20 17:05:43 +0100
committerRobin Jarry <robin@jarry.cc>2023-01-04 22:57:31 +0100
commitae675b491d2b55a06588e8ab4ce8205aaae796c8 (patch)
tree383920e34344ea3456162fb74cc180bfb33dec83 /widgets/aerc.go
parent2a290cf1ed6113f0d01eea3f2cff446339bed0ce (diff)
downloadaerc-ae675b491d2b55a06588e8ab4ce8205aaae796c8.tar.gz
templates: change fields as lazy functions
No need to pre-render fields that are not necessarily accessed in templates. Change fields to functions that are evaluated only when required. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r--widgets/aerc.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index f6e5c1ff..eb904ea0 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -20,7 +20,6 @@ import (
"git.sr.ht/~rjarry/aerc/lib/crypto"
"git.sr.ht/~rjarry/aerc/lib/ui"
"git.sr.ht/~rjarry/aerc/log"
- "git.sr.ht/~rjarry/aerc/models"
"git.sr.ht/~rjarry/aerc/worker/types"
)
@@ -710,7 +709,7 @@ func (aerc *Aerc) Mailto(addr *url.URL) error {
}
composer, err := NewComposer(aerc, acct,
- acct.AccountConfig(), acct.Worker(), "", h, models.OriginalMail{})
+ acct.AccountConfig(), acct.Worker(), "", h, nil)
if err != nil {
return nil
}