diff --git a/bridge/config/config.go b/bridge/config/config.go index 75792ed0..c1e617d4 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -145,6 +145,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 c39c6082..ccd0afb4 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -499,6 +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 = b.GetBool("ReplyBroadcast") if msg.Avatar != "" { params.IconURL = msg.Avatar } diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample index 0665a599..bc188283 100644 --- a/matterbridge.toml.sample +++ b/matterbridge.toml.sample @@ -1297,6 +1297,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: