diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js --- a/lib/shared/thread-utils.js +++ b/lib/shared/thread-utils.js @@ -1442,9 +1442,9 @@ if (!threadSearchResults.has(item.threadInfo.id)) { continue; } - if (item.threadInfo.type === threadTypes.GENESIS_PRIVATE) { + if (threadTypeIsPrivate(item.threadInfo.type)) { privateThreads.push({ ...item, sidebars: [] }); - } else if (item.threadInfo.type === threadTypes.GENESIS_PERSONAL) { + } else if (threadTypeIsPersonal(item.threadInfo.type)) { personalThreads.push({ ...item, sidebars: [] }); } else { otherThreads.push({ ...item, sidebars: [] }); @@ -1482,9 +1482,9 @@ if (!threadSearchResultsSet.has(threadInfo.id)) { continue; } - if (threadInfo.type === threadTypes.GENESIS_PRIVATE) { + if (threadTypeIsPrivate(threadInfo.type)) { privateThreads.push(threadInfo); - } else if (threadInfo.type === threadTypes.GENESIS_PERSONAL) { + } else if (threadTypeIsPersonal(threadInfo.type)) { personalThreads.push(threadInfo); } else { otherThreads.push(threadInfo);