When the activity integration is used we need to open the `activity` tab not the comments tab. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>pull/58287/head
parent
b80816dfb7
commit
cd15bb0679
@ -0,0 +1,13 @@ |
||||
/*! |
||||
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors |
||||
* SPDX-License-Identifier: AGPL-3.0-or-later |
||||
*/ |
||||
|
||||
import { loadState } from '@nextcloud/initial-state' |
||||
|
||||
/** |
||||
* Check if the comments app is using the Activity app integration for the sidebar. |
||||
*/ |
||||
export function isUsingActivityIntegration() { |
||||
return loadState('comments', 'activityEnabled', false) && window.OCA?.Activity?.registerSidebarAction !== undefined |
||||
} |
||||
Loading…
Reference in new issue