Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

rn: cleanup old code

Saúl Ibarra Corretgé59db39d4d966
diff --git a/react/features/calendar-sync/middleware.js b/react/features/calendar-sync/middleware.js
index f6e164159a..bca381c3f2 100644
--- a/react/features/calendar-sync/middleware.js
+++ b/react/features/calendar-sync/middleware.js
@@ -1,7 +1,7 @@
// @flow
import { SET_CONFIG } from '../base/config';
-import { ADD_KNOWN_DOMAINS, addKnownDomains } from '../base/known-domains';
+import { ADD_KNOWN_DOMAINS } from '../base/known-domains';
import { equals, MiddlewareRegistry } from '../base/redux';
import { APP_STATE_CHANGED } from '../mobile/background/actionTypes';
@@ -37,18 +37,6 @@ isCalendarEnabled()
case SET_CONFIG: {
const result = next(action);
- // For legacy purposes, we've allowed the deserialization of
- // knownDomains and now we're to translate it to base/known-domains.
- const state = store.getState()['features/calendar-sync'];
-
- if (state) {
- const { knownDomains } = state;
-
- Array.isArray(knownDomains)
- && knownDomains.length
- && store.dispatch(addKnownDomains(knownDomains));
- }
-
_fetchCalendarEntries(store, false, false);
return result;
diff --git a/react/features/calendar-sync/reducer.js b/react/features/calendar-sync/reducer.js
index b2e934d700..106d00d7c0 100644
--- a/react/features/calendar-sync/reducer.js
+++ b/react/features/calendar-sync/reducer.js
@@ -1,6 +1,5 @@
// @flow
-import { APP_WILL_MOUNT } from '../base/app';
import { ReducerRegistry, set } from '../base/redux';
import { PersistenceRegistry } from '../base/storage';
@@ -41,33 +40,19 @@ const DEFAULT_STATE = {
const STORE_NAME = 'features/calendar-sync';
/**
- * NOTE 1: For legacy purposes, read any {@code knownDomains} persisted by the
- * feature calendar-sync.
- *
- * NOTE 2: Never persist the authorization value as it's needed to remain a
+ * NOTE: Never persist the authorization value as it's needed to remain a
* runtime value to see if we need to re-request the calendar permission from
* the user.
*/
isCalendarEnabled()
&& PersistenceRegistry.register(STORE_NAME, {
integrationType: true,
- knownDomains: true,
msAuthState: true
});
isCalendarEnabled()
&& ReducerRegistry.register(STORE_NAME, (state = DEFAULT_STATE, action) => {
switch (action.type) {
- case APP_WILL_MOUNT:
- // For legacy purposes, we've allowed the deserialization of
- // knownDomains. At this point, it should have already been
- // translated into the new state format (namely, base/known-domains)
- // and the app no longer needs it.
- if (typeof state.knownDomains !== 'undefined') {
- return set(state, 'knownDomains', undefined);
- }
- break;
-
case CLEAR_CALENDAR_INTEGRATION:
return DEFAULT_STATE;