]> source.dussan.org Git - gitea.git/commit
Update notification table with only latest data (#16445) (#16469)
authorzeripath <art27@cantab.net>
Sat, 17 Jul 2021 17:05:59 +0000 (18:05 +0100)
committerGitHub <noreply@github.com>
Sat, 17 Jul 2021 17:05:59 +0000 (19:05 +0200)
commit7f6019e492d50e4d07498b17dac0bf437fdd66ec
treeb21671ab12a80108750b4a029746f871699ce3bc
parent0f11c5f592dd32db71beb5bbbf996f33a1c50f0d
Update notification table with only latest data (#16445) (#16469)

When marking notifications read the results may be returned out of order
or be delayed.  This PR sends a sequence number to gitea so that the
browser can ensure that only the results of the latest notification
change are shown.

Signed-off-by: Andrew Thornton <art27@cantab.net>
routers/web/user/notification.go
templates/user/notification/notification_div.tmpl
web_src/js/features/notification.js