Page MenuHomePhabricator

[web] Fix missing relationship buttons
ClosedPublic

Authored by inka on Wed, Apr 24, 7:32 AM.
Tags
None
Referenced Files
F1695670: D11760.id39440.diff
Fri, May 3, 8:30 AM
Unknown Object (File)
Thu, May 2, 8:19 PM
Unknown Object (File)
Wed, May 1, 4:01 PM
Unknown Object (File)
Tue, Apr 30, 2:09 PM
Unknown Object (File)
Mon, Apr 29, 2:10 PM
Unknown Object (File)
Mon, Apr 29, 1:00 PM
Unknown Object (File)
Mon, Apr 29, 11:32 AM
Unknown Object (File)
Sun, Apr 28, 9:02 AM
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.Wed, Apr 24, 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.Thu, Apr 25, 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.