Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-12082 Don't clear user's Teammate Name Display when it matches system default #1814

Merged
merged 1 commit into from
Oct 3, 2018

Conversation

hmhealey
Copy link
Member

@hmhealey hmhealey commented Oct 2, 2018

We want to maintain the user's setting as long as they've changed it at least once. The previous version cleared it if they set it to match the system-wide setting

Ticket Link

https://mattermost.atlassian.net/browse/MM-12082

@hmhealey hmhealey added the 2: Dev Review Requires review by a core commiter label Oct 2, 2018
@hmhealey hmhealey added this to the v5.4.0 milestone Oct 2, 2018
@hmhealey hmhealey self-assigned this Oct 2, 2018
} else {
preferences.push(teammateNameDisplayPreference);
}
const preferences = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a thumb rule about when we change from a single line to multiline assignments and destructuring?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really. I usually do it when there's 3 or more items, but I don't think I'm consistent since I almost always break this.setState into multiple lines even when there's only one field being set.

There's an ESLint rule that we could use if we wanted to make it consistent though

@grundleborg grundleborg added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Oct 3, 2018
@hmhealey hmhealey merged commit 2fa439f into master Oct 3, 2018
@hmhealey hmhealey deleted the mm12082 branch October 3, 2018 14:23
hmhealey added a commit that referenced this pull request Oct 3, 2018
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation Changelog/Done Required changelog entry has been written and removed Changelog/Not Needed Does not require a changelog entry labels Oct 3, 2018
@lindy65 lindy65 added Tests/Done Release tests have been written and removed 4: Reviews Complete All reviewers have approved the pull request labels Oct 7, 2018
fincha pushed a commit to fincha/mattermost-webapp that referenced this pull request Oct 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation Tests/Done Release tests have been written
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants