Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Team sync to prefer slack profile's real name opposed to display name #25

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

ashfame
Copy link
Member

@ashfame ashfame commented Nov 21, 2023

Enabling team sync updated matrix users' name since it defaults to Slack's display name. In prod, we had real name as the display name which enabled mentioning users work both by their username and name. In order to bring this back, change in this PR changes how users are synced.

This change would ensure anytime a user is synced (at boot or with user_change event), slack's profile real name for the user is set as the name on its corresponding matrix account, if it doesn't match already.

@psrpinto I was able to test this locally and it worked, but please take a closer look. Here's it in action:

Screenshot 2023-11-21 at 8 59 39 PM

@ashfame ashfame requested a review from psrpinto November 21, 2023 17:00
@ashfame ashfame self-assigned this Nov 21, 2023
@ashfame ashfame merged commit 4983799 into develop Nov 22, 2023
2 checks passed
@ashfame ashfame deleted the team_sync_prefer_slack_real_name branch November 22, 2023 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants