Change the "open in new window" room list cell action underneath mark as read/unread and change its icon
This commit is contained in:
committed by
Stefan Ceriu
parent
bbc27d17ec
commit
aef8d79104
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user