From 550ebce05634c9c300dbcb2c41491486064570a6 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 27 May 2021 17:16:44 -0300 Subject: [PATCH] Fix fav --- app/views/RoomsListView/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/RoomsListView/index.js b/app/views/RoomsListView/index.js index 19df2c3b0..9d99e237c 100644 --- a/app/views/RoomsListView/index.js +++ b/app/views/RoomsListView/index.js @@ -421,7 +421,7 @@ class RoomsListView extends React.Component { observable = await db.collections .get('subscriptions') .query(...defaultWhereClause) - .observeWithColumns(['alert']); + .observeWithColumns(['alert', 'f']); // When we're NOT grouping } else { @@ -441,12 +441,12 @@ class RoomsListView extends React.Component { let chats = data; let chatsUpdate = []; - if (showUnread) { + if (this.isGrouping) { /** * If unread on top, we trigger re-render based on order changes and sub.alert * 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 { /** * Otherwise, we trigger re-render only when chats order changes