clay-server 2.29.5-beta.2 → 2.29.5-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -336,9 +336,11 @@ export function renderUserStrip(allUsers, onlineUserIds, myUserId, dmFavorites,
|
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
// Render mates (
|
|
339
|
+
// Render mates (favorites + unread in multi-user, all in single-user)
|
|
340
|
+
var singleUser = allOthers.length === 0;
|
|
340
341
|
var favoriteMates = cachedMates.filter(function (m) {
|
|
341
342
|
if (cachedDmRemovedUsers[m.id]) return false;
|
|
343
|
+
if (singleUser) return true;
|
|
342
344
|
if (cachedDmFavorites.indexOf(m.id) !== -1) return true;
|
|
343
345
|
if (cachedDmUnread[m.id] && cachedDmUnread[m.id] > 0) return true;
|
|
344
346
|
return false;
|