feat(conference): store conference errors in redux

This commit is contained in:
Saúl Ibarra Corretgé 2017-11-09 13:48:33 +01:00 committed by Lyubo Marinov
parent 345fcefa7d
commit d0859b3ce1
1 changed files with 5 additions and 1 deletions

View File

@ -102,6 +102,7 @@ function _conferenceFailed(state, { conference, error }) {
return assign(state, {
authRequired,
conference: undefined,
error,
joining: undefined,
leaving: undefined,
@ -224,7 +225,10 @@ function _conferenceLeft(state, { conference }) {
* reduction of the specified action.
*/
function _conferenceWillJoin(state, { conference }) {
return set(state, 'joining', conference);
return assign(state, {
error: undefined,
joining: conference
});
}
/**