[FIX] RoomsList update sometimes isn't fired (#2071)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
200f94e244
commit
022b0330bf
|
@ -212,13 +212,17 @@ class RoomsListView extends React.Component {
|
|||
this.willFocusListener = navigation.addListener('willFocus', () => {
|
||||
// Check if there were changes while not focused (it's set on sCU)
|
||||
if (this.shouldUpdate) {
|
||||
// animateNextTransition();
|
||||
this.forceUpdate();
|
||||
this.shouldUpdate = false;
|
||||
}
|
||||
});
|
||||
this.didFocusListener = navigation.addListener('didFocus', () => {
|
||||
this.animated = true;
|
||||
// Check if there were changes while not focused (it's set on sCU)
|
||||
if (this.shouldUpdate) {
|
||||
this.forceUpdate();
|
||||
this.shouldUpdate = false;
|
||||
}
|
||||
this.backHandler = BackHandler.addEventListener('hardwareBackPress', this.handleBackPress);
|
||||
});
|
||||
this.willBlurListener = navigation.addListener('willBlur', () => {
|
||||
|
|
Loading…
Reference in New Issue