aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/reply.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/reply.go')
-rw-r--r--commands/msg/reply.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index acc0d6fa..e55b5d4b 100644
--- a/commands/msg/reply.go
+++ b/commands/msg/reply.go
@@ -165,10 +165,13 @@ func (r reply) Execute(args []string) error {
store := widget.Store()
noStore := store == nil
- if noStore && isMsgViewer {
+ switch {
+ case noStore && isMsgViewer:
app.PushWarning("No message store found: answered flag cannot be set")
- } else if noStore {
+ case noStore:
return errors.New("Cannot perform action. Messages still loading")
+ default:
+ original.Folder = store.Name
}
addTab := func() error {