fix: Minor fixes
This commit is contained in:
parent
61fdb7f22f
commit
a143b978a3
3 changed files with 16 additions and 14 deletions
|
|
@ -269,9 +269,9 @@ class BackgroundPush {
|
|||
if (_fcmToken?.isEmpty ?? true) {
|
||||
try {
|
||||
_fcmToken = await _fcmSharedIsolate?.getToken();
|
||||
if (_fcmToken == null) throw Exception('PushToken is null');
|
||||
if (_fcmToken == null) throw ('PushToken is null');
|
||||
} catch (e, s) {
|
||||
Logs().e('[Push] cannot get token', e, s);
|
||||
Logs().w('[Push] cannot get token', e, e is String ? null : s);
|
||||
await _noFcmWarning();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,6 +50,9 @@ class FlutterFluffyBoxDatabase extends FluffyBoxDatabase {
|
|||
hiverCipher = HiveAesCipher(base64Url.decode(rawEncryptionKey));
|
||||
} on MissingPluginException catch (_) {
|
||||
Logs().i('FluffyBox encryption is not supported on this platform');
|
||||
} catch (_) {
|
||||
const FlutterSecureStorage().delete(key: _cipherStorageKey);
|
||||
rethrow;
|
||||
}
|
||||
|
||||
final db = FluffyBoxDatabase(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue