fix: Database corruption because notification tab isolate starts too late
This commit is contained in:
parent
582797b5f6
commit
92fcfacfc4
2 changed files with 14 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ void notificationTapBackground(
|
|||
) async {
|
||||
Logs().i('Notification tap in background');
|
||||
|
||||
final sendPort = IsolateNameServer.lookupPortByName('background_tab_port');
|
||||
final sendPort = IsolateNameServer.lookupPortByName('main_isolate');
|
||||
if (sendPort != null) {
|
||||
sendPort.send(notificationResponse.toJsonString());
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue