Skip to content

Commit

Permalink
add config option ReplyBroadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanabodin19 committed May 14, 2024
1 parent cbca9ee commit f4b47fb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions bridge/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bridge/slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
5 changes: 5 additions & 0 deletions matterbridge.toml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f4b47fb

Please sign in to comment.