Fix SSO login on iOS (#3657)

This commit is contained in:
Elias Nahum 2019-12-03 13:08:30 -03:00 committed by GitHub
parent aa03f1cd1c
commit 4cc375dcb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -160,7 +160,13 @@ class GlobalEventHandler {
PushNotifications.clearNotifications();
const cacheDir = RNFetchBlob.fs.dirs.CacheDir;
const mainPath = cacheDir.split('/').slice(0, -1).join('/');
await RNFetchBlob.fs.unlink(cacheDir);
try {
await RNFetchBlob.fs.unlink(cacheDir);
} catch (e) {
console.log('Failed to remove cache folder', e); //eslint-disable-line no-console
}
mattermostBucket.removePreference('cert');
if (Platform.OS === 'ios') {
mattermostBucket.removeFile('entities');

View file

@ -221,7 +221,6 @@ class SSO extends PureComponent {
onLoadEnd={this.onLoadEnd}
onMessage={messagingEnabled ? this.onMessage : null}
useSharedProcessPool={true}
sharedCookiesEnabled={true}
cacheEnabled={false}
/>
);