mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-07-20 10:04:08 +00:00
Dedup without keeping deleted array
This commit is contained in:
parent
48523a2269
commit
fef46823eb
5 changed files with 10 additions and 12 deletions
|
@ -40,7 +40,7 @@ class Connection {
|
|||
console.log(`[Connection, ${this.shortUrl}] Message irrelevant or invalid. Ignoring.`);
|
||||
return;
|
||||
}
|
||||
this.since = data.time;
|
||||
this.since = data.time + 1; // Sigh. This works because on reconnect, we wait 5+ seconds anyway.
|
||||
this.onNotification(this.subscriptionId, data);
|
||||
} catch (e) {
|
||||
console.log(`[Connection, ${this.shortUrl}] Error handling message: ${e}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue