This commit is contained in:
Evgeny Poberezkin
2026-07-01 20:36:26 +01:00
parent 4bef5f409e
commit 5825ad84de
6 changed files with 6 additions and 8 deletions
@@ -951,8 +951,6 @@
<string name="error_saving_simplex_name">Error saving name</string>
<string name="simplex_name_owner_no_channel_link">The SimpleX name %1$s is registered without channel link. Add channel link to the name via the registration page.</string>
<string name="simplex_name_owner_no_address">The SimpleX name %1$s is registered without SimpleX address. Add your SimpleX address to the name via the registration page.</string>
<string name="set_user_simplex_name_footer">Set a SimpleX name so people can connect to you using @yourname instead of a link. The name must already be registered to your address.</string>
<string name="set_channel_simplex_name_footer">Set a SimpleX name so people can find this channel as #name. The name must be registered to this channel\'s address.</string>
<string name="set_user_simplex_name_footer">Let people connect to you via name registered with your SimpleX address.</string>
<string name="set_channel_simplex_name_footer">Let people join via name registered with this channel link.</string>
<string name="or_show_this_qr_code">Or show this code</string>
+1 -1
View File
@@ -3214,7 +3214,7 @@ NO_SESSION:
**Record type**:
- groupWebPage: string?
- simplexName: [SimplexNameClaim](#simplexnameclaim)?
- simplexNameWebPage: bool
- domainWebPage: bool
- allowEmbedding: bool
@@ -3473,7 +3473,7 @@ export namespace ProxyError {
export interface PublicGroupAccess {
groupWebPage?: string
simplexName?: SimplexNameClaim
simplexNameWebPage: boolean
domainWebPage: boolean
allowEmbedding: boolean
}
@@ -2436,7 +2436,7 @@ ProxyError_Tag = Literal["PROTOCOL", "BROKER", "BASIC_AUTH", "NO_SESSION"]
class PublicGroupAccess(TypedDict):
groupWebPage: NotRequired[str]
simplexName: NotRequired["SimplexNameClaim"]
simplexNameWebPage: bool
domainWebPage: bool
allowEmbedding: bool
class PublicGroupData(TypedDict):
+1 -1
View File
@@ -52,7 +52,7 @@ import Data.Type.Equality (testEquality, (:~:) (Refl))
import Data.Typeable (Typeable)
import Data.Word (Word16)
import Simplex.Chat.Badges (BadgeInfo (..), BadgeProof (..), BadgeStatus (..), LocalBadge (..), localBadgeInfo, localBadgeStatus, mkBadgeStatus, verifyBadge)
import Simplex.Chat.Names (NameClaimProof (..), SimplexNameClaim, setClaimProof)
import Simplex.Chat.Names (SimplexNameClaim, setClaimProof)
import Simplex.Messaging.Crypto.BBS (BBSPublicKey)
import Simplex.Chat.Types.Preferences
import Simplex.Chat.Types.Shared
+2 -2
View File
@@ -2049,10 +2049,10 @@ viewGroupUpdated
access = pg >>= publicGroupAccess
access' = pg' >>= publicGroupAccess
viewAccess Nothing = " removed"
viewAccess (Just PublicGroupAccess {groupWebPage, simplexName, simplexNameWebPage, allowEmbedding}) =
viewAccess (Just PublicGroupAccess {groupWebPage, simplexName, domainWebPage, allowEmbedding}) =
maybe "" (\u -> " web=" <> plain u) groupWebPage
<> maybe "" (\ni -> " name=" <> plain (strEncode ni)) (claimName <$> simplexName)
<> (if simplexNameWebPage then " name_page=on" else "")
<> (if domainWebPage then " name_page=on" else "")
<> (if allowEmbedding then " embed=on" else "")
viewGroupProfile :: GroupInfo -> [StyledString]