Fix scn-requests box not being open in _onBackgroundMessage

This commit is contained in:
Mike Schwörer 2024-07-13 00:16:01 +02:00
parent be7035978b
commit 74a935f6f1
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -302,6 +302,7 @@ Future<void> _receiveMessage(RemoteMessage message, bool foreground) async {
await Hive.openBox<SCNLog>('scn-logs');
await Hive.openBox<FBMessage>('scn-fb-messages');
await Hive.openBox<SCNMessage>('scn-message-cache');
await Hive.openBox<SCNRequest>('scn-requests');
} catch (exc, trace) {
ApplicationLog.error('Failed to init hive:' + exc.toString(), trace: trace);
Notifier.showLocalNotification("@ERROR", "@ERROR", 'Error Channel', "Error", "Failed to receive SCN message (init failed)", null);