Merge pull request #2582 from matrix-org/bwindels/fixnotifbadgeclickandcursor

Fix: click on notif badge
pull/21833/head
David Baker 2019-02-07 14:12:00 +00:00 committed by GitHub
commit 594bd86a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -75,6 +75,7 @@ limitations under the License.
font-size: 12px;
padding: 0 5px;
background-color: $roomtile-name-color;
cursor: pointer;
}
.mx_RoomSubList_addRoom, .mx_RoomSubList_badge {

View File

@ -157,7 +157,7 @@ const RoomSubList = React.createClass({
// prevent the roomsublist collapsing
e.preventDefault();
e.stopPropagation();
const room = this.props.lists.find(room => RoomNotifs.getRoomHasBadge(room));
const room = this.props.list.find(room => RoomNotifs.getRoomHasBadge(room));
if (room) {
dis.dispatch({
action: 'view_room',