HomePhabricator
Diffusion Comm 4f1fb05ccf70

[lib][web][native] Update createPendingThread usages

Description

[lib][web][native] Update createPendingThread usages

Summary:
issue: ENG-8974
I went through all places where createPendingThread is used and checked what needs to be done for them. Some places still need to be updated, but they are related to useExistingThreadInfoFinder, which is a different task.

Test Plan:

  1. Tested that ComposeThreadButton creates a thick thread now. It's the button used on iOS for creating a new chat from the chat tab
  2. composeThread in ChatThreadList is the same as ComposeThreadButton, but for Android instead of iOS. Assuming it works since iOS works
  3. Checked that Top/bar which uses useThreadInfoForPossiblyPendingThread correctly shows the name of the user the ucrrent user is not friends with. Checked that it correctly shows the name of a chat the user is a member of
  4. createPendingPersonalThread is used in
    • createPendingThreadItem used to create an item in the thread list, but only for personal chats with users the current user has not yet messaged ever. Checked that their names are shown correctly in those items.
    • useUserProfileThreadInfo used to display profile info of users the user doesn't yet know. Thested that their name and friendship buttons are shown correctly

Reviewers: tomek, kamil

Reviewed By: tomek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D13253

Details

Provenance
inkaAuthored on Sep 6 2024, 3:35 AM
Reviewer
tomek
Differential Revision
D13253: [lib][web][native] Update createPendingThread usages
Parents
rCOMM9428742124b0: [lib][web][native] Update createRealThreadFromPendingThread to handle thickā€¦
Branches
Unknown
Tags
Unknown