mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-02 08:04:10 +01:00
chore: fix Web secure storage
This commit is contained in:
parent
bd60c67535
commit
3e0be0f8fd
@ -34,6 +34,9 @@ class FlutterFamedlySdkHiveDatabase extends FamedlySdkHiveDatabase {
|
||||
}
|
||||
HiveCipher hiverCipher;
|
||||
try {
|
||||
// Workaround for secure storage is calling Platform.operatingSystem on web
|
||||
if (kIsWeb) throw MissingPluginException();
|
||||
|
||||
final secureStorage = const FlutterSecureStorage();
|
||||
final containsEncryptionKey =
|
||||
await secureStorage.containsKey(key: _hiveCipherStorageKey);
|
||||
|
Loading…
Reference in New Issue
Block a user