diff --git a/bridge/config/config.go b/bridge/config/config.go index 18c60920..1385d72d 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -144,6 +144,7 @@ type Protocol struct { RejoinDelay int // IRC ReplaceMessages [][]string // all protocols ReplaceNicks [][]string // all protocols + ReplyBroadcast bool // slack RemoteNickFormat string // all protocols RunCommands []string // IRC Server string // IRC,mattermost,XMPP,discord,matrix diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 73366e36..ccd0afb4 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -499,7 +499,7 @@ func (b *Bslack) prepareMessageOptions(msg *config.Message) []slack.MsgOption { params.LinkNames = 1 // replace mentions params.IconURL = config.GetIconURL(msg, b.GetString(iconURLConfig)) params.ThreadTimestamp = msg.ParentID - params.ReplyBroadcast = true + params.ReplyBroadcast = b.GetBool("ReplyBroadcast") if msg.Avatar != "" { params.IconURL = msg.Avatar } diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample index 5932b269..46c0cfb9 100644 --- a/matterbridge.toml.sample +++ b/matterbridge.toml.sample @@ -1290,6 +1290,11 @@ ReplaceMessages=[ ["cat","dog"] ] #optional (default empty) ReplaceNicks=[ ["user--","user"] ] +# ReplyBroadcast indicates whether reply should be made visible to everyone in the channel or conversation. +ู# Function [] Also sent to #channel +#optional (default false) +ReplyBroadcast=false + #Extractnicks is used to for example rewrite messages from other relaybots #See https://github.com/42wim/matterbridge/issues/713 and https://github.com/42wim/matterbridge/issues/466 #some examples: