From ca11cbf6cc1fc4af786f57a35af26462574aa504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 14 Jun 2019 10:57:43 +0200 Subject: [PATCH] calendar-sync: fix loading calendar entries Checking if the calendar support in the reducer is not only useless but wrong, since we don't have access to the entire store (the calendar support is checked in the base/config feature). If calendar support is not enabled the actions being reduced won't be dispatched anyway, so no harm is done by removing the check. --- react/features/calendar-sync/reducer.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/react/features/calendar-sync/reducer.js b/react/features/calendar-sync/reducer.js index 5b06eb226..47c1a4eaa 100644 --- a/react/features/calendar-sync/reducer.js +++ b/react/features/calendar-sync/reducer.js @@ -13,7 +13,6 @@ import { SET_CALENDAR_PROFILE_EMAIL, SET_LOADING_CALENDAR_EVENTS } from './actionTypes'; -import { isCalendarEnabled } from './functions'; /** * The default state of the calendar feature. @@ -50,10 +49,6 @@ PersistenceRegistry.register(STORE_NAME, { }); ReducerRegistry.register(STORE_NAME, (state = DEFAULT_STATE, action) => { - if (!isCalendarEnabled(state)) { - return state; - } - switch (action.type) { case CLEAR_CALENDAR_INTEGRATION: return DEFAULT_STATE;