1
0
mirror of git://jb55.com/damus synced 2024-09-29 08:20:45 +00:00
damus/DamusNotificationService
William Casarin bfad2ab42d ndb/txn: make transactions failable
Since there may be situations where we close and re-open the database,
we need to make sure transactions fail when the database is not open.

Make NdbTxn an init?() constructor and check for ndb.closed. If it's
closed, then fail transaction construction.

This fixes crashes during high database activity when switching from
background to foreground and vice-versa.

Fixes: da2bdad18d ("nostrdb: close database when backgrounded")
2024-01-10 14:27:02 -08:00
..
DamusNotificationService.entitlements Add experimental push notification support 2023-11-20 10:32:33 -08:00
Info.plist Add experimental push notification support 2023-11-20 10:32:33 -08:00
NotificationExtensionState.swift Fix user setting access issue in the notification extension 2024-01-10 11:06:32 -08:00
NotificationFormatter.swift ndb/txn: make transactions failable 2024-01-10 14:27:02 -08:00
NotificationService.swift ndb/txn: make transactions failable 2024-01-10 14:27:02 -08:00