From f3b98c29c5791920b780e98823f6debf05c3070c Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Thu, 30 Apr 2020 13:03:07 -0300 Subject: [PATCH] [FIX] Prevent double click (#2079) Co-authored-by: Diego Mello --- app/views/RoomsListView/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/RoomsListView/index.js b/app/views/RoomsListView/index.js index 9cccdfc5b..719a43f58 100644 --- a/app/views/RoomsListView/index.js +++ b/app/views/RoomsListView/index.js @@ -549,6 +549,10 @@ class RoomsListView extends React.Component { } _onPressItem = async(item = {}) => { + const { navigation } = this.props; + if (!navigation.isFocused()) { + return; + } if (!item.search) { return this.goRoom(item); }