window: Don't open next chat on deleting one when folded

We have to return to the main window in that case.
Selecting the next chat should only happen when in non-folded
mode
7 jobs for wip/sadiq/fix-folded-view-on-chat-delete in 9 minutes and 20 seconds (queued for 1 second)
latest