Skip to content

Commit

Permalink
Use slack real name as user name (slack) (#1775)
Browse files Browse the repository at this point in the history
* Use slack real name as user name

* Change slack option UseRealName to UseFullName
  • Loading branch information
sas1024 authored Mar 26, 2022
1 parent 5f75f98 commit 6fe0cff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bridge/slack/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ func (b *Bslack) populateMessageWithUserInfo(ev *slack.MessageEvent, rmsg *confi
if user.Profile.DisplayName != "" {
rmsg.Username = user.Profile.DisplayName
}
if b.GetBool("UseFullName") && user.Profile.RealName != "" {
rmsg.Username = user.Profile.RealName
}
return nil
}

Expand Down
4 changes: 4 additions & 0 deletions matterbridge.toml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,10 @@ ShowUserTyping=false
#Default "<clipped message>"
MessageClipped="<clipped message>"

#If enabled use the slack "Real Name" as username.
#OPTIONAL (default false)
UseFullName=false

###################################################################
#discord section
###################################################################
Expand Down

0 comments on commit 6fe0cff

Please sign in to comment.