From ee1d189e5c4b76acbfd34a6f4d4d1bc5340db3b9 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Tue, 19 Jul 2016 21:39:27 +0500 Subject: PLT-3644 - Updating link previews behaviour (#3620) --- webapp/components/user_settings/user_settings_display.jsx | 10 +++++----- webapp/utils/constants.jsx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'webapp') diff --git a/webapp/components/user_settings/user_settings_display.jsx b/webapp/components/user_settings/user_settings_display.jsx index 78a499b51..ee360d736 100644 --- a/webapp/components/user_settings/user_settings_display.jsx +++ b/webapp/components/user_settings/user_settings_display.jsx @@ -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; @@ -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')} /> } describe={describe} diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx index 3dd507540..f0b3f30c9 100644 --- a/webapp/utils/constants.jsx +++ b/webapp/utils/constants.jsx @@ -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', -- cgit v1.2.3-1-g7c22