Skip to content

Commit

Permalink
sync with v4
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Dec 2, 2024
1 parent 1fefc0e commit 4afde47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions messages_v5.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4afde47

Please sign in to comment.