Merge pull request #3053 from dpalou/MOBILE-3833

MOBILE-3833 core: Fix unable to reconnect (main/subscription path)
main
Pau Ferrer Ocaña 2022-01-18 11:36:55 +01:00 committed by GitHub
commit f8a69dec95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 || '';
}