Do not expose AnnouncementState in the api module
This commit is contained in:
parent
1edd3b6314
commit
717932a111
13 changed files with 16 additions and 30 deletions
|
|
@ -15,7 +15,6 @@ interface AnnouncementService {
|
|||
|
||||
@Composable
|
||||
fun Render(
|
||||
state: AnnouncementState,
|
||||
modifier: Modifier,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.announcement.api
|
||||
|
||||
data class AnnouncementState(
|
||||
val showSpaceAnnouncement: Boolean,
|
||||
)
|
||||
|
||||
fun anAnnouncementState(
|
||||
showSpaceAnnouncement: Boolean = false,
|
||||
) = AnnouncementState(
|
||||
showSpaceAnnouncement = showSpaceAnnouncement,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue