forked from Ivasoft/mattermost-mobile
[MM-26318] Improve cold start and channel switching times (#4452)
* Remove withEncryption * Remove warm up * Downgrade react-native-keychain
This commit is contained in:
@@ -36,12 +36,7 @@ public class MattermostCredentialsHelper {
|
||||
|
||||
HashMap<String, String> asyncStorageResults = asyncStorage.multiGet(asyncStorageKeys);
|
||||
String serverUrl = asyncStorageResults.get(CURRENT_SERVER_URL);
|
||||
final WritableMap options = Arguments.createMap();
|
||||
final WritableMap authPrompt = Arguments.createMap();
|
||||
authPrompt.putString("title", "Authenticate to retrieve secret");
|
||||
authPrompt.putString("cancel", "Cancel");
|
||||
options.putMap("authenticationPrompt", authPrompt);
|
||||
|
||||
keychainModule.getInternetCredentialsForServer(serverUrl, options, promise);
|
||||
keychainModule.getGenericPasswordForOptions(serverUrl, promise);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user