From d708f1a6f30160e0329d33fb739ef73a31171022 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sun, 24 Sep 2023 17:01:04 +0200 Subject: viewer: use correct contextual config for no-filter message When no filter is configured for a part, use the correct account contextual ui config. Signed-off-by: Robin Jarry Acked-by: Tim Culverhouse --- widgets/msgviewer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index 41cb639e..90f41167 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -837,7 +837,7 @@ func newNoFilterConfigured(account string, part *models.BodyStructure) *ui.Grid {Strategy: ui.SIZE_WEIGHT, Size: ui.Const(1)}, }) - uiConfig := config.Ui + uiConfig := config.Ui.ForAccount(account) noFilter := fmt.Sprintf(`No filter configured for this mimetype ('%s') What would you like to do?`, part.FullMIMEType()) -- cgit