element-portable/src/stores/notifications
Travis Ralston dd16ec070c Replace countRoomsWithNotif with a dedicated NotificationState
Fixes https://github.com/vector-im/riot-web/issues/14694

Instead of spending 10-1000ms in a function iterating over a whole lot of room events, we can use our cached state from the Notification State Store. 

This commit sets up a structure that could be applied to communities in the TagPanel too, as that could probably use a similar optimization.

This reduces the updateStatusIndicator() time to just 4ms on average.
2020-07-21 20:24:44 -06:00
..
ListNotificationState.ts Don't destroy room notification states when replacing them 2020-07-09 10:22:04 -06:00
NotificationColor.ts Move notification states out of the NotificationBadge component 2020-06-30 13:34:44 -06:00
NotificationState.ts Move and improve notification state handling 2020-07-08 19:26:25 -06:00
RoomNotificationState.ts Make EffectiveMembership utils generic 2020-07-13 20:29:46 -06:00
RoomNotificationStateStore.ts Replace countRoomsWithNotif with a dedicated NotificationState 2020-07-21 20:24:44 -06:00
StaticNotificationState.ts Move and improve notification state handling 2020-07-08 19:26:25 -06:00
SummarizedNotificationState.ts Replace countRoomsWithNotif with a dedicated NotificationState 2020-07-21 20:24:44 -06:00