Skip to content

Commit

Permalink
PLT-3644 - Updating link previews behaviour (mattermost#3620)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asaad Mahmood authored and coreyhulen committed Jul 19, 2016
1 parent d554926 commit 25ea129
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions components/user_settings/user_settings_display.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default class UserSettingsDisplay extends React.Component {
createCollapseSection() {
if (this.props.activeSection === 'collapse') {
const collapseFormat = [false, false];
if (this.state.collapseDisplay === 'true') {
if (this.state.collapseDisplay === 'false') {
collapseFormat[0] = true;
} else {
collapseFormat[1] = true;
Expand All @@ -161,7 +161,7 @@ export default class UserSettingsDisplay extends React.Component {
type='radio'
name='collapseFormat'
checked={collapseFormat[0]}
onChange={this.handleCollapseRadio.bind(this, 'true')}
onChange={this.handleCollapseRadio.bind(this, 'false')}
/>
<FormattedMessage
id='user.settings.display.collapseOn'
Expand All @@ -176,7 +176,7 @@ export default class UserSettingsDisplay extends React.Component {
type='radio'
name='collapseFormat'
checked={collapseFormat[1]}
onChange={this.handleCollapseRadio.bind(this, 'false')}
onChange={this.handleCollapseRadio.bind(this, 'true')}
/>
<FormattedMessage
id='user.settings.display.collapseOff'
Expand Down Expand Up @@ -212,7 +212,7 @@ export default class UserSettingsDisplay extends React.Component {
}

let describe;
if (this.state.collapseDisplay === 'true') {
if (this.state.collapseDisplay === 'false') {
describe = (
<FormattedMessage
id='user.settings.display.collapseOn'
Expand All @@ -237,7 +237,7 @@ export default class UserSettingsDisplay extends React.Component {
title={
<FormattedMessage
id='user.settings.display.collapseDisplay'
defaultMessage='Auto Collapse Previews'
defaultMessage='Link previews'
/>
}
describe={describe}
Expand Down
2 changes: 1 addition & 1 deletion utils/constants.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const Preferences = {
CHANNEL_DISPLAY_MODE: 'channel_display_mode',
CHANNEL_DISPLAY_MODE_CENTERED: 'centered',
CHANNEL_DISPLAY_MODE_FULL_SCREEN: 'full',
CHANNEL_DISPLAY_MODE_DEFAULT: 'centered',
CHANNEL_DISPLAY_MODE_DEFAULT: 'full',
MESSAGE_DISPLAY: 'message_display',
MESSAGE_DISPLAY_CLEAN: 'clean',
MESSAGE_DISPLAY_COMPACT: 'compact',
Expand Down

0 comments on commit 25ea129

Please sign in to comment.