mirror of https://github.com/jitsi/jitsi-meet
parent
c4557c66aa
commit
3403d7bec2
@ -1,5 +1,3 @@ |
||||
/* @flow */ |
||||
|
||||
/** |
||||
* Gets a {@link URL} without hash and query/search params from a specific |
||||
* {@code URL}. |
@ -1,13 +1,16 @@ |
||||
// @flow
|
||||
|
||||
import { ReducerRegistry } from '../base/redux'; |
||||
import ReducerRegistry from '../base/redux/ReducerRegistry'; |
||||
|
||||
import { |
||||
SET_AUDIO_SETTINGS_VISIBILITY, |
||||
SET_VIDEO_SETTINGS_VISIBILITY |
||||
} from './actionTypes'; |
||||
|
||||
ReducerRegistry.register('features/settings', (state = {}, action) => { |
||||
export interface ISettingsState { |
||||
audioSettingsVisible?: boolean; |
||||
videoSettingsVisible?: boolean; |
||||
} |
||||
|
||||
ReducerRegistry.register('features/settings', (state: ISettingsState = {}, action) => { |
||||
switch (action.type) { |
||||
case SET_AUDIO_SETTINGS_VISIBILITY: |
||||
return { |
@ -1,13 +1,16 @@ |
||||
// @flow
|
||||
|
||||
import { ReducerRegistry, set } from '../base/redux'; |
||||
import ReducerRegistry from '../base/redux/ReducerRegistry'; |
||||
import { set } from '../base/redux/functions'; |
||||
|
||||
import { SET_CURRENT_NOTIFICATION_UID } from './actionTypes'; |
||||
|
||||
export interface ITalkWhileMutedState { |
||||
currentNotificationUid?: number; |
||||
} |
||||
|
||||
/** |
||||
* Reduces the redux actions of the feature talk while muted. |
||||
*/ |
||||
ReducerRegistry.register('features/talk-while-muted', (state = { }, action) => { |
||||
ReducerRegistry.register('features/talk-while-muted', (state: ITalkWhileMutedState = { }, action) => { |
||||
switch (action.type) { |
||||
case SET_CURRENT_NOTIFICATION_UID: |
||||
return set(state, 'currentNotificationUid', action.uid); |
@ -1,5 +1,3 @@ |
||||
// @flow
|
||||
|
||||
import { getLogger } from '../base/logging/functions'; |
||||
|
||||
export default getLogger('features/video-quality'); |
@ -1,9 +1,13 @@ |
||||
import { ReducerRegistry } from '../base/redux'; |
||||
import ReducerRegistry from '../base/redux/ReducerRegistry'; |
||||
|
||||
import { SIP_GW_AVAILABILITY_CHANGED } from './actionTypes'; |
||||
|
||||
export interface IVideoSipGW { |
||||
status?: string; |
||||
} |
||||
|
||||
ReducerRegistry.register( |
||||
'features/videosipgw', (state = [], action) => { |
||||
'features/videosipgw', (state: IVideoSipGW = {}, action): IVideoSipGW => { |
||||
switch (action.type) { |
||||
case SIP_GW_AVAILABILITY_CHANGED: { |
||||
return { |
Loading…
Reference in new issue