Prevent getSubscription from running on search
This commit is contained in:
parent
8c9f7ffa54
commit
f71be55140
|
@ -798,6 +798,10 @@ class RoomsListView extends React.Component<IRoomsListViewProps, IRoomsListViewS
|
||||||
};
|
};
|
||||||
|
|
||||||
onEndReached = () => {
|
onEndReached = () => {
|
||||||
|
const { searching } = this.state;
|
||||||
|
if (searching) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.getSubscriptions();
|
this.getSubscriptions();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue