aboutsummaryrefslogtreecommitdiffstats
path: root/lib/format/format.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/format/format.go')
-rw-r--r--lib/format/format.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/format/format.go b/lib/format/format.go
index a070bc94..53d93aa4 100644
--- a/lib/format/format.go
+++ b/lib/format/format.go
@@ -125,7 +125,7 @@ func ParseMessageFormat(
addr := msg.Envelope.From[0]
var val string
- if addr.Name == accountFromAddress.Name {
+ if addr.Name == accountFromAddress.Name && len(msg.Envelope.To) != 0 {
addr = msg.Envelope.To[0]
}