ui: show user incognito profile in channels (#6727)

This commit is contained in:
spaced4ndy
2026-03-30 11:17:59 +00:00
committed by GitHub
parent 929783eb6c
commit 2fc24f8b64
2 changed files with 22 additions and 0 deletions

View File

@@ -90,6 +90,17 @@ struct GroupChatInfoView: View {
.listRowSeparator(.hidden)
.listRowInsets(EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 0))
if groupInfo.useRelays && groupInfo.membership.memberIncognito {
Section(header: Text("Incognito").foregroundColor(theme.colors.secondary)) {
HStack {
Text("Your random profile")
Spacer()
Text(groupInfo.membership.chatViewName)
.foregroundStyle(.indigo)
}
}
}
if groupInfo.useRelays {
Section {
// TODO [relays] allow other owners to manage channel link (requires protocol changes to share link ownership)

View File

@@ -5,6 +5,7 @@ import SectionBottomSpacer
import SectionDividerSpaced
import SectionItemView
import SectionItemViewLongClickable
import SectionItemViewSpaceBetween
import SectionSpacer
import SectionTextFooter
import SectionView
@@ -533,6 +534,16 @@ fun ModalData.GroupChatInfoLayout(
SectionSpacer()
if (groupInfo.useRelays && groupInfo.membership.memberIncognito) {
SectionView(generalGetString(MR.strings.incognito).uppercase()) {
SectionItemViewSpaceBetween {
Text(generalGetString(MR.strings.incognito_random_profile))
Text(groupInfo.membership.chatViewName, color = Indigo)
}
}
SectionDividerSpaced()
}
var anyTopSectionRowShow = false
if (groupInfo.useRelays) {
SectionView {