Enable indent rule and fix indent

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-04-27 17:23:27 +02:00
parent 33617b0375
commit 46bfbbadf9
No known key found for this signature in database
GPG key ID: 9760693FDD98A790
87 changed files with 693 additions and 537 deletions

View file

@ -125,14 +125,14 @@ class CustomRoomTagStore extends EventEmitter {
this._setState({tags});
}
}
break;
break;
case 'on_client_not_viable':
case 'on_logged_out': {
// we assume to always have a tags object in the state
this._state = {tags: {}};
RoomListStore.instance.off(LISTS_UPDATE_EVENT, this._onListsUpdated);
}
break;
break;
}
}

View file

@ -168,7 +168,7 @@ class GroupFilterOrderStore extends Store {
Analytics.trackEvent('FilterStore', 'select_tag');
}
break;
break;
case 'deselect_tags':
if (payload.tag) {
// if a tag is passed, only deselect that tag
@ -181,7 +181,7 @@ class GroupFilterOrderStore extends Store {
});
}
Analytics.trackEvent('FilterStore', 'deselect_tags');
break;
break;
case 'on_client_not_viable':
case 'on_logged_out': {
// Reset state without pushing an update to the view, which generally assumes that
@ -207,8 +207,8 @@ class GroupFilterOrderStore extends Store {
groupIds.forEach(groupId => {
const rooms =
GroupStore.getGroupRooms(groupId)
.map(r => client.getRoom(r.roomId)) // to Room objects
.filter(r => r !== null && r !== undefined); // filter out rooms we haven't joined from the group
.map(r => client.getRoom(r.roomId)) // to Room objects
.filter(r => r !== null && r !== undefined); // filter out rooms we haven't joined from the group
const badge = rooms && RoomNotifs.aggregateNotificationCount(rooms);
changedBadges[groupId] = (badge && badge.count !== 0) ? badge : undefined;
});