Skip to content

Commit

Permalink
Make EditSuffix option actually work (whatsapp). Fixes #1510 (#1728)
Browse files Browse the repository at this point in the history
To keep it backwards compatible we keep the "(edited)" message when no
editsuffix is configured.
  • Loading branch information
42wim authored Feb 6, 2022
1 parent 7288f71 commit 2a3f475
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bridge/whatsapp/whatsapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a3f475

Please sign in to comment.