[FIX] Prevent double click (#2079)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
cce5efe6a9
commit
f3b98c29c5
|
@ -549,6 +549,10 @@ class RoomsListView extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
_onPressItem = async(item = {}) => {
|
_onPressItem = async(item = {}) => {
|
||||||
|
const { navigation } = this.props;
|
||||||
|
if (!navigation.isFocused()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!item.search) {
|
if (!item.search) {
|
||||||
return this.goRoom(item);
|
return this.goRoom(item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue