window: Set selected flag for row only if not folded

When chatty loads, the first item is automatically selected from
the list of connected chats.  But this should be highlighted only
if the window is in unfolded mode.
7 jobs for wip/sadiq/fix-hightlight in 10 minutes and 51 seconds (queued for 3 seconds)
latest
Status Job ID Name Coverage
  Build
passed #265544
librem5
build-debian-gcc

00:01:38

 
  Test
passed #265545
librem5
test:debian-gcc

00:01:31

 
  Package
passed #265550
librem5
package:deb-debian-buster

00:01:41

passed #265547
librem5:arm64
package:deb-debian-buster:arm64

00:04:27

failed #265546
librem5
package:deb-debian-buster

00:00:02

 
  Test Package
passed #265548
librem5
autopkgtest-debian-buster-package

00:01:32

passed #265549
librem5
lintian-debian-buster-package

00:00:49