mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-07-20 10:04:08 +00:00
Switch to since=ID
This commit is contained in:
parent
cda9dfa9d0
commit
0909354a6c
5 changed files with 9 additions and 10 deletions
|
@ -22,7 +22,6 @@ import notificationManager from "../app/NotificationManager";
|
|||
// TODO user management
|
||||
// TODO embed into ntfy server
|
||||
// TODO remember selected subscription
|
||||
// TODO since=<ID>
|
||||
|
||||
const App = () => {
|
||||
console.log(`[App] Rendering main view`);
|
||||
|
@ -70,7 +69,7 @@ const App = () => {
|
|||
})
|
||||
};
|
||||
const poll = (subscription, user) => {
|
||||
const since = subscription.last + 1; // FIXME, sigh ...
|
||||
const since = subscription.last;
|
||||
api.poll(subscription.baseUrl, subscription.topic, since, user)
|
||||
.then(notifications => {
|
||||
setSubscriptions(prev => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue