diff --git a/app/internal_packages/thread-list/lib/thread-list.tsx b/app/internal_packages/thread-list/lib/thread-list.tsx index b0c3e53ed..bd2823656 100644 --- a/app/internal_packages/thread-list/lib/thread-list.tsx +++ b/app/internal_packages/thread-list/lib/thread-list.tsx @@ -177,12 +177,11 @@ class ThreadList extends React.Component<{}, { style: string; syncing: boolean } callback(true); }; - const disabledPackages = AppEnv.config.get('core.disabledPackages') || []; - if (disabledPackages.includes('thread-snooze')) { - return props; - } + // Technically this should be exposed as an API so thread-snooze can register for this + // behavior, but for now we just check for it explicitly. + const snoozePresent = AppEnv.packages.isPackageActive('thread-snooze'); - if (FocusedPerspectiveStore.current().isInbox()) { + if (snoozePresent && FocusedPerspectiveStore.current().isInbox()) { props.onSwipeLeftClass = 'swipe-snooze'; props.onSwipeCenter = () => { Actions.closePopover();