Make EditSuffix option actually work (whatsapp). Fixes #1510 (#1728)

To keep it backwards compatible we keep the "(edited)" message when no
editsuffix is configured.
pull/1729/head
Wim 2 years ago committed by GitHub
parent 7288f71201
commit 2a3f475ff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -293,7 +293,11 @@ func (b *Bwhatsapp) Send(msg config.Message) (string, error) {
if msg.ID != "" {
b.Log.Debugf("updating message with id %s", msg.ID)
msg.Text += " (edited)"
if b.GetString("editsuffix") != "" {
msg.Text += b.GetString("EditSuffix")
} else {
msg.Text += " (edited)"
}
}
// Handle Upload a file

Loading…
Cancel
Save