From 95d4c8ffb89d51c165b2cc354fb112772c452c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 25 Jan 2022 16:08:53 +0100 Subject: [PATCH] fix(rn,navigation) fix navigating back to the welcome page The CONFERENCE_WILL_LEAVE reducer in base/conference wipes the state so we cannot rely on the old room value. We may want to revisit this in the future. --- react/features/mobile/navigation/middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/mobile/navigation/middleware.js b/react/features/mobile/navigation/middleware.js index b0ef6975c..492232862 100644 --- a/react/features/mobile/navigation/middleware.js +++ b/react/features/mobile/navigation/middleware.js @@ -38,7 +38,7 @@ function _setRoom(store, next, action) { if (!oldRoom && newRoom) { navigateRoot(screen.conference.root); - } else if (oldRoom && !newRoom) { + } else if (!newRoom) { navigateRoot(screen.root); }