[FIX] Prevent double click (#2079)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Djorkaeff Alexandre 2020-04-30 13:03:07 -03:00 committed by GitHub
parent cce5efe6a9
commit f3b98c29c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}