mediawiki-extensions-Echo/modules
Moriel Schottlender a7aae23806 Remove read item from counter after it was actually marked as read
We removed the item first from the 'unread' counter and then told
the API to mark it as read. The API, however, wisely first checks
if there is anything *to* mark as read, but by that point, the
unread count is zero, so it gracefully refuses and returns an
empty resolved promise.

That is clearly not the way to go. Remove the read item from its
smart unread counter only **after** it was sent to the API to be
marked as read.

Note: We shouldn't wait for the API promise to resolve to remove
the item from the counter, but the API should run its preliminary
tests before the item is removed.

Bug: T122087
Change-Id: Ia5fc35c7435db8c4742238897da67681cee23c41
2015-12-21 15:13:29 -08:00
..
icons Clarify link and revert icons on notifications 2015-12-17 20:04:33 +00:00
logger Add support for cross-wiki notifications to Schema:EchoInteraction 2015-12-10 10:07:20 -08:00
nojs Merge "Prevent link color on hover for the body ("payload") as well as the header" 2015-11-20 23:39:37 +00:00
ooui Add OOUI widgets for cross-wiki bundled notifications 2015-12-14 17:22:34 -08:00
special Special:Notifications formatter 2015-11-25 10:22:04 -08:00
viewmodel Remove read item from counter after it was actually marked as read 2015-12-21 15:13:29 -08:00
echo.mixins.less Add OOUI widgets for cross-wiki bundled notifications 2015-12-14 17:22:34 -08:00
echo.variables.less Add OOUI widgets for cross-wiki bundled notifications 2015-12-14 17:22:34 -08:00
echo.variables.monobook.less Separate skin specific styles and improve Monobook appearance 2015-11-10 17:57:44 -08:00
echo.variables.vector.less Separate skin specific styles and improve Monobook appearance 2015-11-10 17:57:44 -08:00
ext.echo.init.js Use the double speech bubble icon in the Messages panel 2015-12-16 18:02:48 -06:00
hooks.txt Add overlay hook for user scripts. 2013-06-13 21:27:26 -04:00