Move wrapWidth handling out of MessageBox, improve scroll position handling, use custom routing, close menu when clicking anywhere

This commit is contained in:
Ken-Håvard Lieng 2017-05-07 22:19:15 +02:00
parent a753efd1dd
commit fec7c93abc
24 changed files with 363 additions and 235 deletions

View file

@ -1,6 +1,6 @@
import { routeActions } from 'react-router-redux';
import { broadcast, inform, addMessage, addMessages } from './actions/message';
import { select } from './actions/tab';
import { replace } from './util/router';
import { normalizeChannel } from './util';
function withReason(message, reason) {
@ -52,7 +52,7 @@ export default function handleSocket(socket, { dispatch, getState }) {
servers(data) {
if (!data) {
dispatch(routeActions.replace('/connect'));
dispatch(replace('/connect'));
}
},