Change the "open in new window" room list cell action underneath mark as read/unread and change its icon

This commit is contained in:
Stefan Ceriu
2026-03-31 15:44:54 +03:00
committed by Stefan Ceriu
parent bbc27d17ec
commit aef8d79104

View File

@@ -40,14 +40,6 @@ struct HomeScreenRoomList: View {
context.send(viewAction: .detachRoom(roomIdentifier: room.id))
})
.contextMenu {
if supportsMultipleWindows {
Button {
context.send(viewAction: .detachRoom(roomIdentifier: room.id))
} label: {
Label("Open in new window", icon: \.popOut)
}
}
if room.badges.isDotShown {
Button {
context.send(viewAction: .markRoomAsRead(roomIdentifier: room.id))
@@ -62,6 +54,14 @@ struct HomeScreenRoomList: View {
}
}
if supportsMultipleWindows {
Button {
context.send(viewAction: .detachRoom(roomIdentifier: room.id))
} label: {
Label("Open in new window", icon: \.spotlight)
}
}
if room.isFavourite {
Button {
context.send(viewAction: .markRoomAsFavourite(roomIdentifier: room.id, isFavourite: false))