mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
Update lib/utils/famedlysdk_store.dart
This commit is contained in:
parent
048dfb3a01
commit
0bac4b5903
@ -33,7 +33,11 @@ class Store extends StoreAPI {
|
|||||||
await storage.ready;
|
await storage.ready;
|
||||||
return await storage.setItem(key, value);
|
return await storage.setItem(key, value);
|
||||||
}
|
}
|
||||||
return await secureStorage.write(key: key, value: value);
|
if (value == null) {
|
||||||
|
return await secureStorage.delete(key: key);
|
||||||
|
} else {
|
||||||
|
return await secureStorage.write(key: key, value: value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<Map<String, DeviceKeysList>> getUserDeviceKeys() async {
|
Future<Map<String, DeviceKeysList>> getUserDeviceKeys() async {
|
||||||
|
Loading…
Reference in New Issue
Block a user