mediawiki-extensions-Echo/modules/viewmodel
Stephane Bisson 623d07011c Stop counting notifications objects on the client
The flyout loads no more than 25 notifications
from a given source. Using those in-memory notification
objects to count how many are currently unread (and
update the badge) produces a result of at most 25.

This patch extracts the responsibility or counting the
unread from the Model/Item/Groupitem structure into
a new UnreadNotificationCounter class. It receives
estimated updates from other components and synchronizes
with the server after markRead/markUnread operations
have completed.

Bug: T129726
Change-Id: I9af4defc00dd491ed2b355eb4e85073476e08ce7
2016-03-25 15:31:00 -04:00
..
mw.echo.dm.js Split alerts and messages in Echo 2015-09-02 15:36:37 -07:00
mw.echo.dm.List.js build: Enable jscs jsDoc rule 'requireNewlineAfterDescription' and make pass 2016-03-07 14:29:15 +01:00
mw.echo.dm.NotificationGroupItem.js Stop counting notifications objects on the client 2016-03-25 15:31:00 -04:00
mw.echo.dm.NotificationItem.js build: Enable jscs jsDoc rule 'requireNewlineAfterDescription' and make pass 2016-03-07 14:29:15 +01:00
mw.echo.dm.NotificationList.js Stop counting notifications objects on the client 2016-03-25 15:31:00 -04:00
mw.echo.dm.NotificationsModel.js Stop counting notifications objects on the client 2016-03-25 15:31:00 -04:00
mw.echo.dm.SortedList.js Implement SortedList in Echo notifications 2015-11-06 11:01:10 -08:00
mw.echo.dm.UnreadNotificationCounter.js Stop counting notifications objects on the client 2016-03-25 15:31:00 -04:00