aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorinwit <inwit@sindominio.net>2024-06-29 17:14:24 +0200
committerRobin Jarry <robin@jarry.cc>2024-08-20 11:54:34 +0200
commit930cece51d6522e4b34504895926029eab5e3f5b (patch)
tree21a6fae923f72120745e19a739ac09dd5fe77c0b /models
parentfd81f2c81e3c31118fc7df14c3e208cc112c36b9 (diff)
downloadaerc-930cece51d6522e4b34504895926029eab5e3f5b.tar.gz
templates: add a template for forwaded messages
Add a {{.IsForwarded}} template to tell if a message has been forwarded or not. Changelog-added: Forwarded messages can be identified with the {{.IsForwarded}} template. Signed-off-by: inwit <inwit@sindominio.net> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'models')
-rw-r--r--models/templates.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/templates.go b/models/templates.go
index 27a3ca6e..566fdb14 100644
--- a/models/templates.go
+++ b/models/templates.go
@@ -42,6 +42,7 @@ type TemplateData interface {
IsUnread() bool
IsMarked() bool
IsDraft() bool
+ IsForwarded() bool
MessageId() string
Role() string
Size() int