diff --git a/keyserver/src/responders/website-responders.js b/keyserver/src/responders/website-responders.js --- a/keyserver/src/responders/website-responders.js +++ b/keyserver/src/responders/website-responders.js @@ -202,15 +202,6 @@ 'default notifPermissionAlertInfo', _isEqual(defaultNotifPermissionAlertInfo), ), - connection: tShape({ - status: tString('connecting'), - queuedActivityUpdates: t.irreducible( - 'default queuedActivityUpdates', - _isEqual([]), - ), - lateResponses: t.irreducible('default lateResponses', _isEqual([])), - showDisconnectedBar: tBool(false), - }), actualizedCalendarQuery: tShape({ startDate: t.String, endDate: t.String, @@ -593,7 +584,6 @@ communityPickerStore: { chat: null, calendar: null }, windowDimensions: { width: 0, height: 0 }, notifPermissionAlertInfo: defaultNotifPermissionAlertInfo, - connection: defaultConnectionInfo(), actualizedCalendarQuery: calendarQueryPromise, watchedThreadIDs: [], lifecycleState: 'active', diff --git a/lib/reducers/master-reducer.js b/lib/reducers/master-reducer.js --- a/lib/reducers/master-reducer.js +++ b/lib/reducers/master-reducer.js @@ -2,7 +2,6 @@ import reduceCalendarFilters from './calendar-filters-reducer.js'; import { reduceCalendarQuery } from './calendar-query-reducer.js'; -import reduceConnectionInfo from './connection-reducer.js'; import reduceDataLoaded from './data-loaded-reducer.js'; import { reduceDeviceToken } from './device-token-reducer.js'; import { reduceDraftStore } from './draft-reducer.js'; @@ -60,8 +59,6 @@ reduceMessageStore(state.messageStore, action, threadInfos); let messageStore = reducedMessageStore; - const connection = reduceConnectionInfo(state.connection, action); - let keyserverStore = reduceKeyserverStore(state.keyserverStore, action); if ( @@ -132,7 +129,6 @@ state.notifPermissionAlertInfo, action, ), - connection, actualizedCalendarQuery: reduceCalendarQuery( state.actualizedCalendarQuery, action, diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js --- a/lib/types/redux-types.js +++ b/lib/types/redux-types.js @@ -94,7 +94,6 @@ } from './search-types.js'; import type { SetSessionPayload } from './session-types.js'; import type { - ConnectionInfo, StateSyncFullActionPayload, StateSyncIncrementalActionPayload, UpdateConnectionStatusPayload, @@ -128,7 +127,6 @@ +loadingStatuses: { [key: string]: { [idx: number]: LoadingStatus } }, +calendarFilters: $ReadOnlyArray, +notifPermissionAlertInfo: NotifPermissionAlertInfo, - +connection: ConnectionInfo, +actualizedCalendarQuery: CalendarQuery, +watchedThreadIDs: $ReadOnlyArray, +lifecycleState: LifecycleState, diff --git a/native/redux/redux-setup.js b/native/redux/redux-setup.js --- a/native/redux/redux-setup.js +++ b/native/redux/redux-setup.js @@ -95,7 +95,6 @@ dataLoaded: false, customServer: natNodeServer, notifPermissionAlertInfo: defaultNotifPermissionAlertInfo, - connection: defaultConnectionInfo(), actualizedCalendarQuery: defaultCalendarQuery(Platform.OS), watchedThreadIDs: [], lifecycleState: 'active', diff --git a/native/redux/state-types.js b/native/redux/state-types.js --- a/native/redux/state-types.js +++ b/native/redux/state-types.js @@ -15,7 +15,6 @@ import type { MessageStore } from 'lib/types/message-types.js'; import type { UserPolicies } from 'lib/types/policy-types.js'; import type { ReportStore } from 'lib/types/report-types.js'; -import type { ConnectionInfo } from 'lib/types/socket-types.js'; import type { ThreadStore } from 'lib/types/thread-types.js'; import type { CurrentUserInfo, UserStore } from 'lib/types/user-types.js'; import type { NotifPermissionAlertInfo } from 'lib/utils/push-alerts.js'; @@ -41,7 +40,6 @@ +dataLoaded: boolean, +customServer: ?string, +notifPermissionAlertInfo: NotifPermissionAlertInfo, - +connection: ConnectionInfo, +actualizedCalendarQuery: CalendarQuery, +watchedThreadIDs: $ReadOnlyArray, +lifecycleState: LifecycleState, diff --git a/web/redux/redux-setup.js b/web/redux/redux-setup.js --- a/web/redux/redux-setup.js +++ b/web/redux/redux-setup.js @@ -31,7 +31,6 @@ import type { UserPolicies } from 'lib/types/policy-types.js'; import type { BaseAction } from 'lib/types/redux-types.js'; import type { ReportStore } from 'lib/types/report-types.js'; -import type { ConnectionInfo } from 'lib/types/socket-types.js'; import type { ThreadStore } from 'lib/types/thread-types.js'; import type { CurrentUserInfo, UserStore } from 'lib/types/user-types.js'; import { setNewSessionActionType } from 'lib/utils/action-utils.js'; @@ -82,7 +81,6 @@ +windowDimensions: WindowDimensions, +deviceToken: ?string, +notifPermissionAlertInfo: NotifPermissionAlertInfo, - +connection: ConnectionInfo, +actualizedCalendarQuery: CalendarQuery, +watchedThreadIDs: $ReadOnlyArray, +lifecycleState: LifecycleState,