|
@@ -183,31 +183,34 @@ function _conferenceJoined(state, { conference }) {
|
183
|
183
|
* reduction of the specified action.
|
184
|
184
|
*/
|
185
|
185
|
function _conferenceLeft(state, { conference }) {
|
186
|
|
- let output = state;
|
|
186
|
+ let nextState = state;
|
187
|
187
|
|
188
|
188
|
if (state.authRequired === conference) {
|
189
|
|
- output = set(output, 'authRequired', undefined);
|
|
189
|
+ nextState = set(nextState, 'authRequired', undefined);
|
190
|
190
|
}
|
191
|
191
|
if (state.conference === conference) {
|
192
|
|
- output = assign(output, {
|
|
192
|
+ nextState = assign(nextState, {
|
193
|
193
|
conference: undefined,
|
194
|
194
|
joining: undefined,
|
195
|
|
- leaving: undefined
|
|
195
|
+ leaving: undefined,
|
|
196
|
+
|
|
197
|
+ // XXX Clear/unset locked & password here for a conference which has
|
|
198
|
+ // been LOCKED_LOCALLY.
|
|
199
|
+ locked: undefined,
|
|
200
|
+ password: undefined
|
196
|
201
|
});
|
197
|
202
|
}
|
198
|
203
|
if (state.passwordRequired === conference) {
|
199
|
|
- // Note that in case the conference was joined those fields have been
|
200
|
|
- // cleared already, so this step needs to be done only if the room
|
201
|
|
- // unlock operation has been canceled and that's why it's not done in
|
202
|
|
- // the 'state.conference' condition above.
|
203
|
|
- output = assign(output, {
|
|
204
|
+ nextState = assign(nextState, {
|
|
205
|
+ // XXX Clear/unset locked & password here for a conference which has
|
|
206
|
+ // been LOCKED_REMOTELY.
|
204
|
207
|
locked: undefined,
|
205
|
208
|
password: undefined,
|
206
|
209
|
passwordRequired: undefined
|
207
|
210
|
});
|
208
|
211
|
}
|
209
|
212
|
|
210
|
|
- return output;
|
|
213
|
+ return nextState;
|
211
|
214
|
}
|
212
|
215
|
|
213
|
216
|
/**
|