Compare commits

...

2 Commits

Author SHA1 Message Date
Reinaldo Neto 363b89756e Merge branch 'develop' into fix.share-extension-not-logged-in 2022-06-13 11:16:38 -03:00
Reinaldo Neto 34c121e7e8 [FIX] Share Extension shows a server that has no user logged in 2022-06-08 00:12:08 -03:00
1 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@ import AuthLoadingView from './views/AuthLoadingView';
import { DimensionsContext } from './dimensions';
import { debounce } from './lib/methods/helpers';
import { ShareInsideStackParamList, ShareOutsideStackParamList, ShareAppStackParamList } from './definitions/navigationTypes';
import { colors, CURRENT_SERVER } from './lib/constants';
import { colors, CURRENT_SERVER, TOKEN_KEY } from './lib/constants';
initStore(store);
@ -120,8 +120,9 @@ class Root extends React.Component<{}, IState> {
init = async () => {
const currentServer = UserPreferences.getString(CURRENT_SERVER);
const userId = UserPreferences.getString(`${TOKEN_KEY}-${currentServer}`);
if (currentServer) {
if (currentServer && userId) {
await localAuthenticate(currentServer);
this.setState({ root: 'inside' });
await shareExtensionInit(currentServer);