add TODO
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
8acec1f417
commit
18064c19a3
1 changed files with 2 additions and 0 deletions
|
@ -206,6 +206,8 @@ export default class RoomList2 extends React.Component<IProps, IState> {
|
||||||
let listRooms = lists[t];
|
let listRooms = lists[t];
|
||||||
|
|
||||||
if (unread) {
|
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));
|
const notificationStates = rooms.map(r => new TagSpecificNotificationState(r, t));
|
||||||
// filter to only notification rooms (and our current active room so we can index properly)
|
// filter to only notification rooms (and our current active room so we can index properly)
|
||||||
listRooms = notificationStates.filter(state => {
|
listRooms = notificationStates.filter(state => {
|
||||||
|
|
Loading…
Reference in a new issue