Flow, coding style

This commit is contained in:
Lyubo Marinov 2017-10-17 17:10:42 -05:00
parent 0205b9f49a
commit 5e01abf6fb
3 changed files with 7 additions and 8 deletions

View File

@ -1,3 +1,5 @@
// @flow
import { SET_ROOM } from '../base/conference';
import {
CONNECTION_ESTABLISHED,

View File

@ -1,4 +1,4 @@
/* @flow */
// @flow
import _ from 'lodash';
import type { Dispatch } from 'redux';
@ -263,7 +263,7 @@ export function disconnect() {
const state = getState();
const { conference, joining } = state['features/base/conference'];
// The conference we are joining or have already joined.
// The conference we have already joined or are joining.
const conference_ = conference || joining;
// Promise which completes when the conference has been left and the
@ -286,7 +286,7 @@ export function disconnect() {
// Disconnect the connection.
const { connecting, connection } = state['features/base/connection'];
// The connection we are connecting or have already connected.
// The connection we have already connected or are connecting.
const connection_ = connection || connecting;
if (connection_) {

View File

@ -179,12 +179,9 @@ function _setConfigOrLocationURL({ dispatch, getState }, next, action) {
const result = next(action);
const { locationURL } = getState()['features/base/connection'];
let jwt;
if (locationURL) {
jwt = parseJWTFromURLParams(locationURL);
}
dispatch(setJWT(jwt));
dispatch(
setJWT(locationURL ? parseJWTFromURLParams(locationURL) : undefined));
return result;
}