Fix fav
This commit is contained in:
parent
6e32d1dc6c
commit
550ebce056
|
@ -421,7 +421,7 @@ class RoomsListView extends React.Component {
|
||||||
observable = await db.collections
|
observable = await db.collections
|
||||||
.get('subscriptions')
|
.get('subscriptions')
|
||||||
.query(...defaultWhereClause)
|
.query(...defaultWhereClause)
|
||||||
.observeWithColumns(['alert']);
|
.observeWithColumns(['alert', 'f']);
|
||||||
|
|
||||||
// When we're NOT grouping
|
// When we're NOT grouping
|
||||||
} else {
|
} else {
|
||||||
|
@ -441,12 +441,12 @@ class RoomsListView extends React.Component {
|
||||||
let chats = data;
|
let chats = data;
|
||||||
|
|
||||||
let chatsUpdate = [];
|
let chatsUpdate = [];
|
||||||
if (showUnread) {
|
if (this.isGrouping) {
|
||||||
/**
|
/**
|
||||||
* If unread on top, we trigger re-render based on order changes and sub.alert
|
* If unread on top, we trigger re-render based on order changes and sub.alert
|
||||||
* RoomItem handles its own re-render
|
* RoomItem handles its own re-render
|
||||||
*/
|
*/
|
||||||
chatsUpdate = data.map(item => ({ rid: item.rid, alert: item.alert }));
|
chatsUpdate = data.map(item => ({ rid: item.rid, alert: item.alert, f: item.f }));
|
||||||
} else {
|
} else {
|
||||||
/**
|
/**
|
||||||
* Otherwise, we trigger re-render only when chats order changes
|
* Otherwise, we trigger re-render only when chats order changes
|
||||||
|
|
Loading…
Reference in New Issue