aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/msglist.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-05-27 07:52:13 +0200
committerReto Brunner <reto@labrat.space>2020-05-27 08:11:40 +0200
commitf06d683688e3d2139b14f67b7e349089e7200bf4 (patch)
treeeee331112cbcfeafdb8cd6ba126d9e51ed72b10a /widgets/msglist.go
parent0f78f06610c0e8887aba2ae50e99b86477a384b3 (diff)
downloadaerc-f06d683688e3d2139b14f67b7e349089e7200bf4.tar.gz
Remove duration from the status methods
We always set 10 seconds anyhow, might as well do that without repeating ourselfs.
Diffstat (limited to 'widgets/msglist.go')
-rw-r--r--widgets/msglist.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index 5d12f8e3..b440f3e0 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -3,7 +3,6 @@ package widgets
import (
"fmt"
"log"
- "time"
"github.com/gdamore/tcell"
"github.com/mattn/go-runewidth"
@@ -186,7 +185,7 @@ func (ml *MessageList) MouseEvent(localX int, localY int, event tcell.Event) {
lib.NewMessageStoreView(msg, store, ml.aerc.DecryptKeys,
func(view lib.MessageView, err error) {
if err != nil {
- ml.aerc.PushError(err.Error(), 10*time.Second)
+ ml.aerc.PushError(err.Error())
return
}
viewer := NewMessageViewer(acct, ml.aerc.Config(), view)