mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
fix: Minor fixes
This commit is contained in:
parent
a008cd8a07
commit
6894c732fd
@ -188,19 +188,18 @@ class ChatListView extends StatelessWidget {
|
||||
clipBehavior: Clip.hardEdge,
|
||||
curve: Curves.bounceInOut,
|
||||
decoration: const BoxDecoration(),
|
||||
child: MaterialBanner(
|
||||
child: Material(
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
child: ListTile(
|
||||
leading: Image.asset(
|
||||
'assets/backup.png',
|
||||
fit: BoxFit.contain,
|
||||
width: 44,
|
||||
),
|
||||
content: Text(L10n.of(context).setupChatBackupNow),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: controller.firstRunBootstrapAction,
|
||||
child: Text(L10n.of(context).start),
|
||||
title: Text(L10n.of(context).setupChatBackupNow),
|
||||
trailing: const Icon(Icons.chevron_right_outlined),
|
||||
onTap: controller.firstRunBootstrapAction,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Expanded(child: _ChatListViewBody(controller)),
|
||||
|
@ -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…
Reference in New Issue
Block a user