fix: Add pending icon to outgoing connection request (WPB-4849) #15894
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This commit addresses a backend issue where outgoing connection requests are incorrectly categorized as type 3 (1:1 conversations) instead of type 2 (connect). To work around this issue, we now utilize the "isRequest" property from the users[0] of the conversation users. This approach ensures that the conversation type is accurately represented as type 2 in the incoming list of conversations, aligning with the expected behavior.
Screenshots/Screencast (for UI changes)
Before:
![image](https://private-user-images.githubusercontent.com/63250054/270603183-a40b4838-7694-4b8a-a7fe-c400d7abc26d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1MjgzOTYsIm5iZiI6MTcyMTUyODA5NiwicGF0aCI6Ii82MzI1MDA1NC8yNzA2MDMxODMtYTQwYjQ4MzgtNzY5NC00YjhhLWE3ZmUtYzQwMGQ3YWJjMjZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIxVDAyMTQ1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc5ZTg4NzhjZTEzMmY2MDkxNDkwODA1YmE0NWY5N2NhZDMzM2JlNzhkOWVkNWRmNmVhNTRkNTc5YjlkOTU5YTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UQu1S8BVjumAAs5Lh-TN6NFbT9kWKrCFvTWYzvuiVwE)
After:
![image](https://private-user-images.githubusercontent.com/63250054/270603254-14decf90-8c52-4564-b6c1-e1988ca135bf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1MjgzOTYsIm5iZiI6MTcyMTUyODA5NiwicGF0aCI6Ii82MzI1MDA1NC8yNzA2MDMyNTQtMTRkZWNmOTAtOGM1Mi00NTY0LWI2YzEtZTE5ODhjYTEzNWJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIxVDAyMTQ1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM0YTMwZTkwZDc1ZTc5N2VjMzRhNTYxNTI2N2M3NzNiOGY0NzE0Y2E5NGE2NzZjZWNiMGI3YzI0OWQxYzM4ZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.4SCviQxco8UWAJhod469vg3q1z-dHMcrOceOkaoyJSo)
Checklist