core, ui: show domain for business chat in CLI, test, improve UI (#7235)

* core: preserve domain during group handshake

* query plans

* ui changes

* remove unnecessary change

* improve ui

* name UI

* card layout

* fix footers, entry field

* error icon

* fix height

* fix layout

* fix layout

* remove unused string

* focus name field

* refactor, fix

* improve button

* refactor

* fix ios race

* core: add domain to channel /i output

---------

Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
This commit is contained in:
Evgeny
2026-07-12 09:41:05 +01:00
committed by GitHub
co-authored by Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
parent 5d54362ca8
commit 414f4b6ce1
16 changed files with 608 additions and 146 deletions
+6 -1
View File
@@ -1833,13 +1833,18 @@ viewContactInfo ct@Contact {contactId, profile = LocalProfile {localAlias, conta
<> viewCustomData customData
viewGroupInfo :: GroupInfo -> [StyledString]
viewGroupInfo gInfo@GroupInfo {groupId, uiThemes, customData, groupSummary = GroupSummary {currentMembers, publicMemberCount}} =
viewGroupInfo gInfo@GroupInfo {groupId, businessChat, groupDomainVerified, groupProfile = GroupProfile {publicGroup}, uiThemes, customData, groupSummary = GroupSummary {currentMembers, publicMemberCount}} =
[ "group ID: " <> sShow groupId,
memberCountLine
]
<> domainLine
<> viewUITheme uiThemes
<> viewCustomData customData
where
-- a business presents as a contact (@-name); a public group/channel shows its #-name
domainLine = case businessChat of
Just bc -> simplexDomainLine NTContact (businessDomain bc) groupDomainVerified
Nothing -> simplexDomainLine NTPublicGroup (publicGroup >>= publicGroupAccess >>= groupDomainClaim) groupDomainVerified
memberCountLine
| useRelays' gInfo, Just count <- publicMemberCount = "subscribers: " <> sShow count
| otherwise = "current members: " <> sShow currentMembers