mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-11 10:36:16 +03:00
Merge branch 'develop' into new-guest-access
This commit is contained in:
commit
f8198ba9c9
4 changed files with 12 additions and 3 deletions
|
@ -513,7 +513,11 @@ module.exports = React.createClass({
|
||||||
this._onSetTheme(payload.value);
|
this._onSetTheme(payload.value);
|
||||||
break;
|
break;
|
||||||
case 'on_logging_in':
|
case 'on_logging_in':
|
||||||
this.setState({loggingIn: true});
|
// We are now logging in, so set the state to reflect that
|
||||||
|
// and also that we're not ready (we'll be marked as logged
|
||||||
|
// in once the login completes, then ready once the sync
|
||||||
|
// completes).
|
||||||
|
this.setState({loggingIn: true, ready: false});
|
||||||
break;
|
break;
|
||||||
case 'on_logged_in':
|
case 'on_logged_in':
|
||||||
this._onLoggedIn(payload.teamToken);
|
this._onLoggedIn(payload.teamToken);
|
||||||
|
|
|
@ -88,6 +88,10 @@ const SETTINGS_LABELS = [
|
||||||
id: 'hideRedactions',
|
id: 'hideRedactions',
|
||||||
label: 'Hide removed messages',
|
label: 'Hide removed messages',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'disableMarkdown',
|
||||||
|
label: 'Disable markdown formatting',
|
||||||
|
},
|
||||||
/*
|
/*
|
||||||
{
|
{
|
||||||
id: 'useFixedWidthFont',
|
id: 'useFixedWidthFont',
|
||||||
|
|
|
@ -29,7 +29,6 @@ var Markdown = require("../../../Markdown");
|
||||||
|
|
||||||
var TYPING_USER_TIMEOUT = 10000;
|
var TYPING_USER_TIMEOUT = 10000;
|
||||||
var TYPING_SERVER_TIMEOUT = 30000;
|
var TYPING_SERVER_TIMEOUT = 30000;
|
||||||
var MARKDOWN_ENABLED = true;
|
|
||||||
|
|
||||||
export function onSendMessageFailed(err, room) {
|
export function onSendMessageFailed(err, room) {
|
||||||
// XXX: temporary logging to try to diagnose
|
// XXX: temporary logging to try to diagnose
|
||||||
|
@ -77,7 +76,8 @@ export default React.createClass({
|
||||||
|
|
||||||
componentWillMount: function() {
|
componentWillMount: function() {
|
||||||
this.oldScrollHeight = 0;
|
this.oldScrollHeight = 0;
|
||||||
this.markdownEnabled = MARKDOWN_ENABLED;
|
this.markdownEnabled = !UserSettingsStore.getSyncedSetting('disableMarkdown', false);
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
this.sentHistory = {
|
this.sentHistory = {
|
||||||
// The list of typed messages. Index 0 is more recent
|
// The list of typed messages. Index 0 is more recent
|
||||||
|
|
|
@ -241,6 +241,7 @@
|
||||||
"Direct chats": "Direct chats",
|
"Direct chats": "Direct chats",
|
||||||
"disabled": "disabled",
|
"disabled": "disabled",
|
||||||
"Disable inline URL previews by default": "Disable inline URL previews by default",
|
"Disable inline URL previews by default": "Disable inline URL previews by default",
|
||||||
|
"Disable markdown formatting": "Disable markdown formatting",
|
||||||
"Disinvite": "Disinvite",
|
"Disinvite": "Disinvite",
|
||||||
"Display name": "Display name",
|
"Display name": "Display name",
|
||||||
"Displays action": "Displays action",
|
"Displays action": "Displays action",
|
||||||
|
|
Loading…
Reference in a new issue