aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/compose.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/compose.go')
-rw-r--r--widgets/compose.go15
1 files changed, 14 insertions, 1 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index c59fa8ef..578c761c 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -93,7 +93,20 @@ func NewComposer(
completer: nil,
}
- templateData := templates.NewTemplateData(h, orig)
+ uiConfig := acct.UiConfig()
+
+ templateData := templates.NewTemplateData(
+ acct.acct.From,
+ acct.acct.Aliases,
+ acct.Name(),
+ acct.Directories().Selected(),
+ uiConfig.MessageViewTimestampFormat,
+ uiConfig.MessageViewThisDayTimeFormat,
+ uiConfig.MessageViewThisWeekTimeFormat,
+ uiConfig.MessageViewThisYearTimeFormat,
+ uiConfig.IconAttachment,
+ )
+ templateData.SetHeaders(h, orig)
if err := c.AddTemplate(template, templateData); err != nil {
return nil, err
}