Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit f41a3159eafb676ced2f4626daf42329a9b8b593 Author: Wim <wim@42.be> Date: Sun Feb 06 23:56:54 2022 +0000 Make EditSuffix option actually work (whatsapp). Fixes #1510 (#1728) To keep it backwards compatible we keep the "(edited)" message when no editsuffix is configured. diff --git a/bridge/whatsapp/whatsapp.go b/bridge/whatsapp/whatsapp.go index 7b574c1..ba0ede6 100644 --- a/bridge/whatsapp/whatsapp.go +++ b/bridge/whatsapp/whatsapp.go @@ -2937 +29311 @@ 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