summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorAlexander <emu.sas@gmail.com>2022-03-26 22:52:24 +0300
committerGitHub <noreply@github.com>2022-03-26 20:52:24 +0100
commit6fe0cff342e701aabc069a9b2ea2ec2d26006f8b (patch)
tree8c9498af6db3c789033b664f8088735afc483744 /bridge
parent5f75f9886d4458c5b08ae7f98a20f85415c3d706 (diff)
downloadmatterbridge-msglm-6fe0cff342e701aabc069a9b2ea2ec2d26006f8b.tar.gz
matterbridge-msglm-6fe0cff342e701aabc069a9b2ea2ec2d26006f8b.tar.bz2
matterbridge-msglm-6fe0cff342e701aabc069a9b2ea2ec2d26006f8b.zip
Use slack real name as user name (slack) (#1775)
* Use slack real name as user name * Change slack option UseRealName to UseFullName
Diffstat (limited to 'bridge')
-rw-r--r--bridge/slack/helpers.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/slack/helpers.go b/bridge/slack/helpers.go
index c970b0d7..bdacd7ee 100644
--- a/bridge/slack/helpers.go
+++ b/bridge/slack/helpers.go
@@ -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
}