plan: web previews for channels (#7022)

* plan: web previews for channels

* types for recipient side to support channel web previews and domain names

* fix

* migrations

* update schema and api types

* update schema

* rename migrations

* core: check member role

---------

Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
This commit is contained in:
Evgeny
2026-05-31 17:12:12 +01:00
committed by GitHub
parent 68fc1b5d22
commit 9bb2bec3fa
25 changed files with 894 additions and 44 deletions
@@ -2209,11 +2209,25 @@ object GroupTypeSerializer : KSerializer<GroupType> {
}
}
@Serializable
data class PublicGroupAccess(
val groupWebPage: String? = null,
val groupDomain: String? = null,
val domainWebPage: Boolean = false,
val allowEmbedding: Boolean = false
)
@Serializable
data class RelayCapabilities(
val baseWebUrl: String? = null
)
@Serializable
data class PublicGroupProfile(
val groupType: GroupType,
val groupLink: String,
val publicGroupId: String
val publicGroupId: String,
val publicGroupAccess: PublicGroupAccess? = null
)
@Serializable
@@ -2337,7 +2351,8 @@ data class GroupRelay(
val groupMemberId: Long,
val userChatRelay: UserChatRelay,
val relayStatus: RelayStatus,
val relayLink: String? = null
val relayLink: String? = null,
val relayCap: RelayCapabilities
) {
val id: Long get() = groupRelayId
}