Page MenuHomePhabricator

[web] Fix broken pending threads
ClosedPublic

Authored by tomek on Fri, Sep 13, 10:03 AM.
Tags
None
Referenced Files
F2842179: D13338.diff
Sun, Sep 29, 12:15 PM
F2837327: D13338.id.diff
Sat, Sep 28, 6:26 PM
Unknown Object (File)
Sat, Sep 28, 1:12 PM
Unknown Object (File)
Sat, Sep 28, 12:12 AM
Unknown Object (File)
Fri, Sep 27, 12:30 PM
Unknown Object (File)
Thu, Sep 26, 12:51 PM
Unknown Object (File)
Sat, Sep 21, 8:57 PM
Unknown Object (File)
Sat, Sep 21, 4:03 PM
Subscribers
None

Details

Summary

In D13282 we modified the logic so that instead of an active thread ID we use active thread info that is taken from the thread store. Unfortunately, this change broke the pending threads which aren't present in the store. What we should do instead is to let the component provide the thread store for us.

https://linear.app/comm/issue/ENG-9268/pending-threads-are-broken-on-master-on-the-web

Test Plan

Check if it is possible to create a new thread by sending a text message in a pending thread.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Fri, Sep 13, 10:33 AM
web/chat/chat-input-bar.react.js
692 ↗(On Diff #44189)

This probably can be narrowed down

ashoat added inline comments.
web/input/input-state-container.react.js
660–663 ↗(On Diff #44189)

We can just pass in this.cancelPendingUpload directly if we define it as an arrow function

This revision was automatically updated to reflect the committed changes.