From f71be55140542256eddf2ed9e7e3cb544a3e5d24 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 7 Dec 2022 14:01:03 -0300 Subject: [PATCH] Prevent getSubscription from running on search --- app/views/RoomsListView/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/RoomsListView/index.tsx b/app/views/RoomsListView/index.tsx index d253ddea2..6083b25e6 100644 --- a/app/views/RoomsListView/index.tsx +++ b/app/views/RoomsListView/index.tsx @@ -798,6 +798,10 @@ class RoomsListView extends React.Component { + const { searching } = this.state; + if (searching) { + return; + } this.getSubscriptions(); };