aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/reply.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-07-04 12:18:55 +0200
committerRobin Jarry <robin@jarry.cc>2023-07-17 10:23:36 +0200
commit624fb681a8ceeceecb898627503bf6cf73c2c6e8 (patch)
tree68cc73e04e0c2100795b9bfb0720bbc8f28f431f /commands/msg/reply.go
parent21f14c550a44a4b9207ca27b81976f92a7d26784 (diff)
downloadaerc-624fb681a8ceeceecb898627503bf6cf73c2c6e8.tar.gz
compose: only allow setting content at creation
Add a parameter for the initial value of the body to be inserted *before* the signature when composing a message. Make AppendContents and SetContents private methods to ensure there is no other way to change the composer contents from the outside after creation. Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Bence Ferdinandy <bence@ferdinandy.com> Tested-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'commands/msg/reply.go')
-rw-r--r--commands/msg/reply.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index 2b9f5d4f..8cdb50d4 100644
--- a/commands/msg/reply.go
+++ b/commands/msg/reply.go
@@ -176,7 +176,7 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error {
addTab := func() error {
composer, err := widgets.NewComposer(aerc, acct,
acct.AccountConfig(), acct.Worker(), template, h,
- &original)
+ &original, nil)
if err != nil {
aerc.PushError("Error: " + err.Error())
return err