From 6fe0cff342e701aabc069a9b2ea2ec2d26006f8b Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 26 Mar 2022 22:52:24 +0300 Subject: Use slack real name as user name (slack) (#1775) * Use slack real name as user name * Change slack option UseRealName to UseFullName --- bridge/slack/helpers.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge') 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 } -- cgit v1.2.3