mirror of https://github.com/jitsi/jitsi-meet
parent
575ab1f1cb
commit
cfda02ee10
@ -1,31 +0,0 @@ |
||||
// @flow
|
||||
|
||||
import { ReducerRegistry } from '../base/redux'; |
||||
|
||||
import { RESET_SHARED_VIDEO_STATUS, SET_SHARED_VIDEO_STATUS } from './actionTypes'; |
||||
|
||||
const initialState = {}; |
||||
|
||||
/** |
||||
* Reduces the Redux actions of the feature features/shared-video. |
||||
*/ |
||||
ReducerRegistry.register('features/shared-video', (state = initialState, action) => { |
||||
const { videoUrl, status, time, ownerId, muted, volume } = action; |
||||
|
||||
switch (action.type) { |
||||
case RESET_SHARED_VIDEO_STATUS: |
||||
return initialState; |
||||
case SET_SHARED_VIDEO_STATUS: |
||||
return { |
||||
...state, |
||||
muted, |
||||
ownerId, |
||||
status, |
||||
time, |
||||
videoUrl, |
||||
volume |
||||
}; |
||||
default: |
||||
return state; |
||||
} |
||||
}); |
Loading…
Reference in new issue