mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 03:30:26 +00:00
To keep it backwards compatible we keep the "(edited)" message when no editsuffix is configured.
This commit is contained in:
parent
7288f71201
commit
2a3f475ff5
@ -293,7 +293,11 @@ func (b *Bwhatsapp) Send(msg config.Message) (string, error) {
|
|||||||
if msg.ID != "" {
|
if msg.ID != "" {
|
||||||
b.Log.Debugf("updating message with id %s", 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
|
// Handle Upload a file
|
||||||
|
Loading…
Reference in New Issue
Block a user