mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-29 07:38:54 +00:00
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:
co-authored by
Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
parent
5d54362ca8
commit
414f4b6ce1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user