[FIX] Unread rooms group order (#487)

This commit is contained in:
Diego Mello 2018-10-16 17:28:04 -03:00 committed by GitHub
parent 7dfd57b20c
commit e4faa73b68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ export default class RoomsListView extends LoggedView {
// unread
if (showUnread) {
this.unread = this.data.filtered('archived != true && open == true').sorted('name', false).filtered('(unread > 0 || alert == true)');
this.unread = this.data.filtered('archived != true && open == true').filtered('(unread > 0 || alert == true)');
unread = this.unread.slice();
setTimeout(() => {
this.unread.addListener(() => this.setState({ unread: this.unread.slice() }));