mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-31 03:16:05 +00:00
ui: show user incognito profile in channels (#6727)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user