[web] Add fake pending thread during chat creation
Summary:
Context: here
Adding pending thread mock with "New thread" title, when we haven't chosen any users yet in chat creation mode.
Test Plan:
I. Appearing:
During creating new chat:
- Go to web
- Click on Create new chat
- Mock with "New thread" title appear
Via url:
- Go to /chat/thread/new/ subpage (or refresh page, when you are already on it)
- Mock with "New thread" title appear
Via removing all selected users from thread composer:
- Go to chat creation mode
- Add any users
- Remove them
- Mock with "New thread" title appear
II. Disappearing:
Via selecting any users:
- Go to chat creation mode
- Select any users
- Active mock thread changes to pending or already existed thread
Via closing chat composer:
- Go to chat creation mode
- Close thread composer
- Mock with "New thread" tittle disappear
III. Additional:
- Mock thread works exactly the same as normal pending thread in ChatThreadComposer, especially during selecting and removing users or switching in creation mode between pending and already existing threads.
- Improved thread list behaviour (after closing ChatThreadComposer) is implemented in next diff (D4940)
Reviewers: tomek, jacek, atul
Reviewed By: tomek
Subscribers: ashoat, tomek, atul, abosh
Differential Revision: https://phab.comm.dev/D4939