From 04e49563f2ebdeac03aaed19dfdf275a50d58448 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 30 Nov 2022 17:15:07 -0300 Subject: [PATCH] Try isFocused on RoomsListView.sCU --- app/views/RoomsListView/index.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/views/RoomsListView/index.tsx b/app/views/RoomsListView/index.tsx index 98549081c..0a823bef6 100644 --- a/app/views/RoomsListView/index.tsx +++ b/app/views/RoomsListView/index.tsx @@ -217,6 +217,15 @@ class RoomsListView extends React.Component): boolean { + // TODO: This COULD work, because when we pop from RoomView, we're going to update the sub + // But we need to check if it's really working + if (nextProps.navigation.isFocused()) { + return true; + } + return false; + } + componentDidUpdate(prevProps: IRoomsListViewProps) { const { sortBy,