From 312a53e5ff721e0a29e34aaeceb0eece1203002d Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 20 Mar 2019 23:23:38 -0400 Subject: Implement :delete-message --- widgets/account.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widgets/account.go') diff --git a/widgets/account.go b/widgets/account.go index 8a3b989a..f42ff6c4 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -176,6 +176,9 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { case *types.MessageInfo: store := acct.msgStores[acct.dirlist.selected] store.Update(msg) + case *types.MessagesDeleted: + store := acct.msgStores[acct.dirlist.selected] + store.Update(msg) case *types.Error: acct.logger.Printf("%v", msg.Error) acct.host.SetStatus(fmt.Sprintf("%v", msg.Error)). -- cgit