Skip to content

Commit 109be4b

Browse files
authored
Merge pull request #4320 from anyproto/ios-5546-actions-in-the-navigation-panel-should-also-be-disabled-in
IOS-5546 Show home button for 1-1 spaces in navigation panel
2 parents 49c291a + 81a7170 commit 109be4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Anytype/Sources/PresentationLayer/Modules/HomeNavigationContainer/Panel/HomeBottomNavigationPanelViewModel.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ final class HomeBottomNavigationPanelViewModel: ObservableObject {
200200
if canLinkToChat {
201201
leftButtonMode = .chat(participantSpaceView.permissions.canEdit)
202202
} else if isWidgetsScreen {
203-
if participantSpaceView.isOwner {
203+
if participantSpaceView.spaceView.uxType.isOneToOne {
204+
leftButtonMode = .home
205+
} else if participantSpaceView.isOwner {
204206
let limitAllowSharing = participantSpacesStorage.spaceSharingInfo?.limitsAllowSharing ?? false
205207
let canBeShared = participantSpaceView.permissions.canBeShared
206208
let isShared = participantSpaceView.spaceView.isShared

0 commit comments

Comments
 (0)