From b580fba7db27e9517a42120b81e4276f590a4fc1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 13 Aug 2015 16:43:59 +0100 Subject: [PATCH] Rooms with notifs turned off should still go bold. --- src/controllers/organisms/RoomList.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/controllers/organisms/RoomList.js b/src/controllers/organisms/RoomList.js index 423197067c..91c384a02b 100644 --- a/src/controllers/organisms/RoomList.js +++ b/src/controllers/organisms/RoomList.js @@ -73,13 +73,11 @@ module.exports = { if (actions && actions.tweaks && actions.tweaks.highlight) { hl = 2; } - if (actions.notify) { - // obviously this won't deep copy but this shouldn't be necessary - var amap = this.state.activityMap; - amap[room.roomId] = Math.max(amap[room.roomId] || 0, hl); + // obviously this won't deep copy but this shouldn't be necessary + var amap = this.state.activityMap; + amap[room.roomId] = Math.max(amap[room.roomId] || 0, hl); - newState.activityMap = amap; - } + newState.activityMap = amap; } this.setState(newState); },