From e4f0fdb5253b03afe3c3558238bfa60807ad3356 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 25 Nov 2022 11:01:46 -0300 Subject: [PATCH] Cleanup on RoomsListView --- app/views/RoomsListView/index.tsx | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/app/views/RoomsListView/index.tsx b/app/views/RoomsListView/index.tsx index c4c7fd378..aff0e14ee 100644 --- a/app/views/RoomsListView/index.tsx +++ b/app/views/RoomsListView/index.tsx @@ -1005,36 +1005,13 @@ class RoomsListView extends React.Component { console.count(`${this.constructor.name}.render calls`); - const { chats, search, searching } = this.state; - const { showServerDropdown, theme, navigation, displayMode, refreshing } = this.props; - - const height = displayMode === DisplayMode.Condensed ? ROW_HEIGHT_CONDENSED : ROW_HEIGHT; + const { showServerDropdown, theme, navigation } = this.props; return ( {this.renderHeader()} - {/* {this.renderScroll()} */} - getItemLayout(data, index, height)} - // removeClippedSubviews={isIOS} - keyboardShouldPersistTaps='always' - // initialNumToRender={INITIAL_NUM_TO_RENDER} - refreshControl={ - - } - // windowSize={9} - onEndReached={this.onEndReached} - onEndReachedThreshold={0.5} - /> + {this.renderScroll()} {/* TODO - this ts-ignore is here because the route props, on IBaseScreen*/} {/* @ts-ignore*/} {showServerDropdown ? : null}