mirror of https://github.com/jitsi/jitsi-meet
Moves native dialogs to use dialog container. Implements native Dialog that uses react native Prompt.pull/1379/head
parent
61470c0d24
commit
309ce43e05
@ -1,24 +0,0 @@ |
||||
import { Symbol } from '../base/react'; |
||||
|
||||
/** |
||||
* The type of Redux action which begins a (user) request to lock a specific |
||||
* JitsiConference. |
||||
* |
||||
* { |
||||
* type: BEGIN_ROOM_LOCK_REQUEST, |
||||
* conference: JitsiConference |
||||
* } |
||||
*/ |
||||
export const BEGIN_ROOM_LOCK_REQUEST = Symbol('BEGIN_ROOM_LOCK_REQUEST'); |
||||
|
||||
/** |
||||
* The type of Redux action which end a (user) request to lock a specific |
||||
* JitsiConference. |
||||
* |
||||
* { |
||||
* type: END_ROOM_LOCK_REQUEST, |
||||
* conference: JitsiConference, |
||||
* password: string |
||||
* } |
||||
*/ |
||||
export const END_ROOM_LOCK_REQUEST = Symbol('END_ROOM_LOCK_REQUEST'); |
@ -1,33 +0,0 @@ |
||||
import { |
||||
CONFERENCE_FAILED, |
||||
CONFERENCE_JOINED, |
||||
CONFERENCE_LEFT |
||||
} from '../base/conference'; |
||||
import { ReducerRegistry, setStateProperty } from '../base/redux'; |
||||
|
||||
import { BEGIN_ROOM_LOCK_REQUEST, END_ROOM_LOCK_REQUEST } from './actionTypes'; |
||||
|
||||
ReducerRegistry.register('features/room-lock', (state = {}, action) => { |
||||
switch (action.type) { |
||||
case BEGIN_ROOM_LOCK_REQUEST: |
||||
return setStateProperty(state, 'requested', action.conference); |
||||
|
||||
case CONFERENCE_FAILED: |
||||
case CONFERENCE_LEFT: |
||||
case END_ROOM_LOCK_REQUEST: { |
||||
if (state.requested === action.conference) { |
||||
return setStateProperty(state, 'requested', undefined); |
||||
} |
||||
break; |
||||
} |
||||
|
||||
case CONFERENCE_JOINED: { |
||||
if (state.requested !== action.conference) { |
||||
return setStateProperty(state, 'requested', undefined); |
||||
} |
||||
break; |
||||
} |
||||
} |
||||
|
||||
return state; |
||||
}); |
Loading…
Reference in new issue