mautrix / slack

A Matrix-Slack puppeting bridge
GNU Affero General Public License v3.0
70 stars 19 forks source link

{{.TeamName}} works in channel_name_template but not in displayname_template #50

Closed niebloomj closed 3 months ago

niebloomj commented 8 months ago

I have chats with the same people across multiple workspaces, so I need to be able to differentiate which team I am talking to them from. When I added the team name parameter to the displayname_template, it resulted in the following: displayname_template: '{{.RealName}} ({{.TeamName}}, S)' -> John Doe (

twouters commented 8 months ago

There's a PR to add space support which is often accepted as a workaround for this problem: https://github.com/mautrix/slack/pull/37

(it doesn't fix the bug, just reduces the need to add TeamName in the display name.)

niebloomj commented 8 months ago

That PR is from many months ago, not sure when/if it will be merged, but just adding the variable to the template I imagine is simpler to get pushed through.