Page MenuHomePhabricator

[web] Change navInfo.selectedUserList to contains user infos
ClosedPublic

Authored by michal on May 29 2023, 6:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 13, 7:49 PM
Unknown Object (File)
Mon, May 13, 7:44 PM
Unknown Object (File)
Mon, May 13, 2:44 PM
Unknown Object (File)
Sat, May 4, 3:52 PM
Unknown Object (File)
Mon, Apr 29, 7:37 AM
Unknown Object (File)
Mon, Apr 29, 7:37 AM
Unknown Object (File)
Mon, Apr 29, 7:33 AM
Unknown Object (File)
Mon, Apr 29, 7:00 AM
Subscribers

Details

Summary

The users we get from search users endpoint might not be in the userStore. Because of that this diff changes the navInfo to contain the whole userInfos instead of just ids. When selecting a new user in the chat composer we save user info in the navInfo. During redux state updates we use the previous navInfo as the source of the userInfos in the navInfoFromURL.

Depends on D8009

Test Plan

Try adding and removing users from chat composer. Check if the url and navInfo are updated correctly. Try navigating to chat/thread/new/<non-existant-user-id> and check if it is removed.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable