Compare commits

..

No commits in common. "25620f1cead1b9c48d1ade649adb334747e62b6c" and "53213e40de166f227e041435ee8c733c4ba87efa" have entirely different histories.

View file

@ -1,12 +1,4 @@
export const filterNavigation = (list = [], {
hasChats,
hasAnnouncements,
isFederating,
isPrivate,
currentUser,
supportsBookmarkFolders,
supportsBubbleTimeline
}) => {
export const filterNavigation = (list = [], { hasChats, hasAnnouncements, isFederating, isPrivate, currentUser, supportsBookmarkFolders }) => {
return list.filter(({ criteria, anon, anonRoute }) => {
const set = new Set(criteria || [])
if (!isFederating && set.has('federating')) return false
@ -16,7 +8,6 @@ export const filterNavigation = (list = [], {
if (!hasChats && set.has('chats')) return false
if (!hasAnnouncements && set.has('announcements')) return false
if (supportsBookmarkFolders && set.has('!supportsBookmarkFolders')) return false
if (supportsBubbleTimeline && set.has('!supportsBubbleTimeline')) return false
return true
})
}