mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-06-04 14:42:00 +00:00
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:
+17
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user