From c46bc230471e4c22bd926b70a63732bbd1a0bc77 Mon Sep 17 00:00:00 2001
From: "Evgeny @ SimpleX Chat"
<259188159+evgeny-simplex@users.noreply.github.com>
Date: Mon, 1 Jun 2026 21:32:33 +0000
Subject: [PATCH] update embed code
---
.../Chat/Group/ChannelWebAccessView.swift | 6 ++--
.../views/chat/group/ChannelWebPageView.kt | 6 ++--
website/channel_sample.html | 8 ++---
website/src/js/channel-preview.jsc | 30 +++++++++----------
4 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/apps/ios/Shared/Views/Chat/Group/ChannelWebAccessView.swift b/apps/ios/Shared/Views/Chat/Group/ChannelWebAccessView.swift
index 21b82342dd..25d8090735 100644
--- a/apps/ios/Shared/Views/Chat/Group/ChannelWebAccessView.swift
+++ b/apps/ios/Shared/Views/Chat/Group/ChannelWebAccessView.swift
@@ -124,10 +124,10 @@ struct ChannelWebAccessView: View {
if let pg = groupInfo.groupProfile.publicGroup,
!relayDomains.isEmpty {
"""
-
+ data-channel-id="\(pg.publicGroupId)"
+ data-channel-link="\(pg.groupLink)">
"""
} 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 5afc241017..eaf5386d66 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
@@ -175,9 +175,9 @@ private fun embedCode(groupRelays: List, groupInfo: GroupInfo): Stri
val relayDomains = groupRelays.mapNotNull { it.relayCap.webDomain }
if (relayDomains.isEmpty()) return null
val domains = relayDomains.joinToString(",")
- return """
+ data-channel-id="${pg.publicGroupId}"
+ data-channel-link="${pg.groupLink}">
"""
}
diff --git a/website/channel_sample.html b/website/channel_sample.html
index cd347311bf..93824c08d9 100644
--- a/website/channel_sample.html
+++ b/website/channel_sample.html
@@ -11,10 +11,10 @@
diff --git a/website/src/js/channel-preview.jsc b/website/src/js/channel-preview.jsc
index b6dab697a5..8283fa1c9a 100644
--- a/website/src/js/channel-preview.jsc
+++ b/website/src/js/channel-preview.jsc
@@ -433,11 +433,11 @@ const FORWARD_ICON_SVG = `