From 18064c19a382985b8d05b346254f3a1b8570fd83 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 6 Jul 2020 18:13:11 +0100 Subject: [PATCH] add TODO Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/rooms/RoomList2.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/views/rooms/RoomList2.tsx b/src/components/views/rooms/RoomList2.tsx index 0eef2143dd..66c1ea8798 100644 --- a/src/components/views/rooms/RoomList2.tsx +++ b/src/components/views/rooms/RoomList2.tsx @@ -206,6 +206,8 @@ export default class RoomList2 extends React.Component { let listRooms = lists[t]; if (unread) { + // TODO Be smarter and not spin up a bunch of wasted listeners just to kill them 4 lines later + // https://github.com/vector-im/riot-web/issues/14035 const notificationStates = rooms.map(r => new TagSpecificNotificationState(r, t)); // filter to only notification rooms (and our current active room so we can index properly) listRooms = notificationStates.filter(state => {