This commit is contained in:
spaced4ndy
2026-03-30 19:02:27 +04:00
parent 146c8db3db
commit afcf43fe0a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -579,7 +579,7 @@ struct ChatView: View {
contentFilterMenu(withLabel: false)
Menu {
if groupInfo.canAddMembers {
if chat.chatInfo.incognito {
if chat.chatInfo.incognito || groupInfo.useRelays {
groupLinkButton()
.appSheet(isPresented: $showGroupLinkSheet) {
GroupLinkView(
@@ -590,7 +590,7 @@ struct ChatView: View {
creatingGroup: false
)
}
} else if !groupInfo.useRelays {
} else {
addMembersButton()
}
}
@@ -1282,14 +1282,14 @@ fun BoxScope.ChatInfoToolbar(
is ChatInfo.Group -> {
// Add members / group link moved to menu
if (chatInfo.groupInfo.canAddMembers) {
if (chatInfo.incognito) {
if (chatInfo.incognito || chatInfo.groupInfo.useRelays) {
menuItems.add {
ItemAction(stringResource(MR.strings.group_link), painterResource(MR.images.ic_add_link), onClick = {
showMenu.value = false
openGroupLink(chatInfo.groupInfo)
})
}
} else if (!chatInfo.groupInfo.useRelays) {
} else {
menuItems.add {
ItemAction(stringResource(MR.strings.icon_descr_add_members), painterResource(MR.images.ic_person_add_500), onClick = {
showMenu.value = false