Load other teams you can join when deleting cache (#5516)

This commit is contained in:
Elias Nahum 2021-07-07 12:24:41 -04:00 committed by GitHub
parent c2852d9581
commit 883399f13d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,7 @@ import {resetMomentLocale} from '@i18n';
import {setupPermanentSidebar} from '@init/device';
import PushNotifications from '@init/push_notifications';
import {setAppState, setServerVersion} from '@mm-redux/actions/general';
import {getTeams} from '@mm-redux/actions/teams';
import {autoUpdateTimezone} from '@mm-redux/actions/timezone';
import {close as closeWebSocket} from '@actions/websocket';
import {Client4} from '@client/rest';
@ -213,6 +214,7 @@ class GlobalEventHandler {
await dispatch(loadConfigAndLicense());
await dispatch(loadMe(user));
dispatch(getTeams());
const window = Dimensions.get('window');
this.onOrientationChange({window});