mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-02 01:17:45 +00:00
fix
This commit is contained in:
@@ -578,8 +578,8 @@ struct ChatView: View {
|
||||
HStack {
|
||||
contentFilterMenu(withLabel: false)
|
||||
Menu {
|
||||
if groupInfo.canAddMembers && !groupInfo.useRelays {
|
||||
if (chat.chatInfo.incognito) {
|
||||
if groupInfo.canAddMembers {
|
||||
if chat.chatInfo.incognito {
|
||||
groupLinkButton()
|
||||
.appSheet(isPresented: $showGroupLinkSheet) {
|
||||
GroupLinkView(
|
||||
@@ -590,7 +590,7 @@ struct ChatView: View {
|
||||
creatingGroup: false
|
||||
)
|
||||
}
|
||||
} else {
|
||||
} else if !groupInfo.useRelays {
|
||||
addMembersButton()
|
||||
}
|
||||
}
|
||||
|
||||
+9
-9
@@ -1281,21 +1281,21 @@ fun BoxScope.ChatInfoToolbar(
|
||||
}
|
||||
is ChatInfo.Group -> {
|
||||
// Add members / group link moved to menu
|
||||
if (chatInfo.groupInfo.canAddMembers && !chatInfo.groupInfo.useRelays) {
|
||||
if (!chatInfo.incognito) {
|
||||
menuItems.add {
|
||||
ItemAction(stringResource(MR.strings.icon_descr_add_members), painterResource(MR.images.ic_person_add_500), onClick = {
|
||||
showMenu.value = false
|
||||
addMembers(chatInfo.groupInfo)
|
||||
})
|
||||
}
|
||||
} else {
|
||||
if (chatInfo.groupInfo.canAddMembers) {
|
||||
if (chatInfo.incognito) {
|
||||
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) {
|
||||
menuItems.add {
|
||||
ItemAction(stringResource(MR.strings.icon_descr_add_members), painterResource(MR.images.ic_person_add_500), onClick = {
|
||||
showMenu.value = false
|
||||
addMembers(chatInfo.groupInfo)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
menuItems.add {
|
||||
|
||||
Reference in New Issue
Block a user