From 6c4e687d63ed06d3adc17aadaa7afb8dbf95ebac Mon Sep 17 00:00:00 2001 From: Chaiwat Ekkaewnumchai Date: Tue, 19 Nov 2019 05:18:40 -0800 Subject: [PATCH] Fix Notifications Not Showing up Summary: Notification tab was not accessible previously. Reviewed By: passy Differential Revision: D18590702 fbshipit-source-id: 36888a2e695dc701ea848cb772c00e4feed8659f --- src/reducers/connections.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/reducers/connections.tsx b/src/reducers/connections.tsx index 7370137f6..797f10373 100644 --- a/src/reducers/connections.tsx +++ b/src/reducers/connections.tsx @@ -155,6 +155,8 @@ const INITAL_STATE: State = { deepLinkPayload: null, staticView: WelcomeScreen, }; +// Please sync with NotificationsHub +const STATIC_PLUGINS_ID: Array = ['notifications']; const reducer = (state: State = INITAL_STATE, action: Actions): State => { switch (action.type) { @@ -549,6 +551,7 @@ function updateSelection(state: Readonly): State { const availablePlugins: string[] = [ ...(device?.devicePlugins || []), ...(client?.plugins || []), + ...STATIC_PLUGINS_ID, ]; if (