mirror of
https://github.com/nextcloud/server.git
synced 2026-05-23 10:37:27 -04:00
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>
13 lines
441 B
TypeScript
13 lines
441 B
TypeScript
/*!
|
|
* 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
|
|
}
|