Introduce hook containing logic responsible for selecting `ChatThreadItem`s vontaining child threads with some filter, so it could be used in both Subchannels and Sidebars modals on web.
The hook also adds watching to threads and fetches most recent message from server if necessarry, so all threads data are always updated.
The logic is almost completely moved from `SubchannelsModal` and only some default parameters were added.