Skip to content

Commit

Permalink
Fix empty subject on non-tpl tx subject. Closes knadh#898.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Aug 20, 2022
1 parent c60412d commit 6b11020
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,8 @@ func (m *TxMessage) Render(sub Subscriber, tpl *Template) error {
}
m.Subject = b.String()
b.Reset()
} else {
m.Subject = tpl.Subject
}

return nil
Expand Down

0 comments on commit 6b11020

Please sign in to comment.