Prevent getSubscription from running on search

This commit is contained in:
Diego Mello 2022-12-07 14:01:03 -03:00
parent 8c9f7ffa54
commit f71be55140
1 changed files with 4 additions and 0 deletions

View File

@ -798,6 +798,10 @@ class RoomsListView extends React.Component<IRoomsListViewProps, IRoomsListViewS
};
onEndReached = () => {
const { searching } = this.state;
if (searching) {
return;
}
this.getSubscriptions();
};