From e6aa70af21c086b7c1ce03bbd076f2d6533da40f Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Tue, 2 Jun 2026 18:07:47 +0100 Subject: [PATCH] update embed code --- .../ios/Shared/Views/Chat/Group/ChannelWebAccessView.swift | 7 ++++--- .../simplex/common/views/chat/group/ChannelWebPageView.kt | 7 ++++--- website/channel_sample.html | 3 +-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/apps/ios/Shared/Views/Chat/Group/ChannelWebAccessView.swift b/apps/ios/Shared/Views/Chat/Group/ChannelWebAccessView.swift index 25d8090735..f84dce87bf 100644 --- a/apps/ios/Shared/Views/Chat/Group/ChannelWebAccessView.swift +++ b/apps/ios/Shared/Views/Chat/Group/ChannelWebAccessView.swift @@ -125,9 +125,10 @@ struct ChannelWebAccessView: View { !relayDomains.isEmpty { """
+ data-channel-link="\(pg.groupLink)" + data-channel-id="\(pg.publicGroupId)" + data-relay-domains="\(relayDomains.joined(separator: ","))" + > """ } else { diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/ChannelWebPageView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/ChannelWebPageView.kt index eaf5386d66..a948f0830a 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/ChannelWebPageView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/ChannelWebPageView.kt @@ -176,8 +176,9 @@ private fun embedCode(groupRelays: List, groupInfo: GroupInfo): Stri if (relayDomains.isEmpty()) return null val domains = relayDomains.joinToString(",") return """
+ data-channel-link="${pg.groupLink}" + data-channel-id="${pg.publicGroupId}" + data-relay-domains="$domains" +> """ } diff --git a/website/channel_sample.html b/website/channel_sample.html index 23214212d3..d102c76ceb 100644 --- a/website/channel_sample.html +++ b/website/channel_sample.html @@ -11,8 +11,7 @@ -