Skip to content

Commit 6432792

Browse files
author
Weblate
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents a3d15e0 + 22b8218 commit 6432792

3 files changed

Lines changed: 7 additions & 77 deletions

File tree

‎src/components/structures/RoomSubList.js‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,14 @@ var RoomSubList = React.createClass({
246246
roomNotificationCount: function(truncateAt) {
247247
var self = this;
248248

249+
if (this.props.isInvite) {
250+
return [0, true];
251+
}
252+
249253
return this.props.list.reduce(function(result, room, index) {
250254
if (truncateAt === undefined || index >= truncateAt) {
251255
var roomNotifState = RoomNotifs.getRoomNotifsState(room.roomId);
252-
var highlight = room.getUnreadNotificationCount('highlight') > 0 || self.props.isInvite;
256+
var highlight = room.getUnreadNotificationCount('highlight') > 0;
253257
var notificationCount = room.getUnreadNotificationCount();
254258

255259
const notifBadges = notificationCount > 0 && self._shouldShowNotifBadge(roomNotifState);
@@ -394,7 +398,8 @@ var RoomSubList = React.createClass({
394398
var subListNotifCount = subListNotifications[0];
395399
var subListNotifHighlight = subListNotifications[1];
396400

397-
var roomCount = this.props.list.length > 0 ? this.props.list.length : '';
401+
var totalTiles = this.props.list.length + (this.props.extraTiles || []).length;
402+
var roomCount = totalTiles > 0 ? totalTiles : '';
398403

399404
var chevronClasses = classNames({
400405
'mx_RoomSubList_chevron': true,

‎src/skins/vector/css/matrix-react-sdk/views/groups/_GroupInviteTile.scss‎

Lines changed: 0 additions & 74 deletions
This file was deleted.

‎src/skins/vector/css/themes/_base.scss‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ $mention-user-pill-bg-color: #ff0064;
2323
$other-user-pill-bg-color: rgba(0, 0, 0, 0.1);
2424

2525
// groups
26-
$group-alert-color: #774f7e;
2726
$group-my-groups-placeholder-bg: #f7f7f7;
2827
$group-my-groups-placeholder-fg: #888;
2928

0 commit comments

Comments
 (0)