From 4afde47cc327edbe675efa3496a036806d2a92af Mon Sep 17 00:00:00 2001 From: Vilen Topchii <32271530+vtopc@users.noreply.github.com> Date: Mon, 2 Dec 2024 18:12:10 +0200 Subject: [PATCH] sync with v4 --- messages_v5.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/messages_v5.go b/messages_v5.go index 80748cb3..a622d07f 100644 --- a/messages_v5.go +++ b/messages_v5.go @@ -551,15 +551,15 @@ func (m *plainMessageV5) isValid() bool { return false } + if m.from == "" { + return false + } + if m.template != "" { // m.text or m.html not needed if template is supplied return true } - if m.from == "" { - return false - } - if m.text == "" && m.html == "" { return false }