diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index 49fc33b3..f568621d 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -432,8 +432,13 @@ func (b *Bmatrix) handleEdit(ev *matrix.Event, rmsg config.Message) bool { return false } + if b.GetBool("EditDisable") { + return true + } + rmsg.ID = relation.EventID rmsg.Text = newContent.Body + rmsg.Text += b.GetString("EditSuffix") b.Remote <- rmsg return true diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample index 0665a599..02890308 100644 --- a/matterbridge.toml.sample +++ b/matterbridge.toml.sample @@ -1268,6 +1268,14 @@ UseUserName=false # - https://github.com/42wim/matterbridge/issues/1780 KeepQuotedReply=false +#Disable sending of edits to other bridges +#OPTIONAL (default false) +EditDisable=false + +#Message to be appended to every edited message +#OPTIONAL (default empty) +EditSuffix=" (edited)" + #Nicks you want to ignore. #Regular expressions supported #Messages from those users will not be sent to other bridges.