From 9a3ed5ac8d78d7d7fb6099e80352dde85143d3fa Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Mon, 30 Mar 2020 09:13:51 -0700 Subject: [PATCH] Ensure UpdateDialog closes when restart signal is tapped --- ts/state/ducks/updates.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ts/state/ducks/updates.ts b/ts/state/ducks/updates.ts index ac44839e97..471ff0c1f7 100644 --- a/ts/state/ducks/updates.ts +++ b/ts/state/ducks/updates.ts @@ -127,6 +127,14 @@ export function reducer( }; } + if (action.type === START_UPDATE) { + return { + dialogType: Dialogs.None, + didSnooze: state.didSnooze, + showEventsCount: state.showEventsCount, + }; + } + if ( action.type === DISMISS_DIALOG && state.dialogType === Dialogs.MacOS_Read_Only