From 0c4c361446a0b08933013078cac0592ca20a743e Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 30 Nov 2022 18:29:18 -0300 Subject: [PATCH] Remove isFocused logic from sCU --- app/views/RoomsListView/index.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/views/RoomsListView/index.tsx b/app/views/RoomsListView/index.tsx index dee03825e..272fe6835 100644 --- a/app/views/RoomsListView/index.tsx +++ b/app/views/RoomsListView/index.tsx @@ -217,15 +217,6 @@ 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, @@ -394,6 +385,7 @@ class RoomsListView extends React.Component { + console.log('🚀 ~ file: index.tsx ~ line 408 ~ RoomsListView ~ getSubscriptions'); this.unsubscribeQuery(); const { sortBy, showUnread, showFavorites, groupByType, user } = this.props; @@ -884,7 +876,7 @@ class RoomsListView extends React.Component (item.separator ? 'section' : 'item')}