1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-08-20 16:34:22 +02:00

Conn state listener, click action button

This commit is contained in:
Philipp Heckel 2022-03-04 11:08:32 -05:00
parent 3bce0ad4ae
commit 5878d7e5a6
8 changed files with 120 additions and 27 deletions

View file

@ -13,6 +13,11 @@ class SubscriptionManager {
await db.subscriptions.put(subscription);
}
async updateState(subscriptionId, state) {
console.log(`Update state: ${subscriptionId} ${state}`)
db.subscriptions.update(subscriptionId, { state: state });
}
async remove(subscriptionId) {
await db.subscriptions.delete(subscriptionId);
await db.notifications