Page MenuHomePhabricator

[web] Fix missing relationship buttons
ClosedPublic

Authored by inka on Apr 24 2024, 7:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 25, 7:08 PM
Unknown Object (File)
Wed, Dec 25, 7:08 PM
Unknown Object (File)
Wed, Dec 25, 7:08 PM
Unknown Object (File)
Wed, Dec 25, 7:07 PM
Unknown Object (File)
Wed, Dec 25, 7:07 PM
Unknown Object (File)
Nov 3 2024, 2:28 AM
Unknown Object (File)
Oct 11 2024, 3:50 PM
Unknown Object (File)
Oct 11 2024, 3:50 PM
Subscribers

Details

Summary

issue: ENG-7486
We might not have user infos in our UserStore, if we don't have any relationship with them. But we can extract them from the pending thread infos. useRelationshipPrompt takes pendingPersonalThreadUserInfo as an argument, and uses it if the user infos are indeed not present in the store.

Test Plan

Tested that the relationship buttons are present and work correctly

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Apr 24 2024, 7:51 AM
web/chat/chat-message-list.react.js
322–325 ↗(On Diff #39440)

Is there a risk in an index out-of-bounds error here?

Is native also affected by this bug?

This revision is now accepted and ready to land.Apr 25 2024, 7:17 AM

Is native also affected by this bug?

No, native handles this differently

This revision was automatically updated to reflect the committed changes.