MOBILE-3833 core: Fix unable to reconnect (main/subscription path)

main
Dani Palou 2022-01-18 10:33:46 +01:00
parent 9c1553c46b
commit 396d221961
2 changed files with 3 additions and 1 deletions

View File

@ -46,6 +46,8 @@ export class CoreSortedDelegate<
this.clearSortedHandlers();
}
});
// Clear loaded handlers on login, there could be an invalid list loaded when user reconnects after token expired.
CoreEvents.on(CoreEvents.LOGIN, this.clearSortedHandlers.bind(this));
}
/**

View File

@ -581,7 +581,7 @@ export class CoreNavigatorService {
return '';
}
const handlers = CoreMainMenuDelegate.getHandlers();
const handlers = CoreMainMenuDelegate.getHandlers().filter((handler) => !handler.onlyInMore);
return handlers[0]?.page || '';
}