Page MenuHomePhabricator

[web] Avoid keyserver call when deleting media for DMs
ClosedPublic

Authored by bartek on Sep 11 2024, 1:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 4, 3:52 PM
Unknown Object (File)
Sat, Oct 12, 1:05 AM
Unknown Object (File)
Sat, Oct 12, 1:05 AM
Unknown Object (File)
Sat, Oct 12, 1:05 AM
Unknown Object (File)
Sat, Oct 12, 1:03 AM
Unknown Object (File)
Sep 29 2024, 8:49 AM
Unknown Object (File)
Sep 26 2024, 12:37 PM
Unknown Object (File)
Sep 24 2024, 8:46 PM
Subscribers

Details

Summary

On web, we pre-upload media as soon as it is selected, before actually sending the message. When user decides not to send the image (clicks the cross button in the corner),
the uploaded media gets deleted. This results in keyserver call: this.props.deleteUpload(). For DMs, we want to avoid such call.

Needed to update some code to pass the whole threadInfo of active chat, instead of only threadID.

Depends on D13281

Test Plan
  • Verified that behavior for keyserver media hasn't been changed and the endpoint is still called
  • TBD for DMs

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable