Fix empty subject on non-tpl tx subject. Closes #898.

This commit is contained in:
Kailash Nadh 2022-08-20 19:57:16 +05:30
parent c60412dcb3
commit 6b11020a67

View file

@ -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