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)
Tue, Nov 26, 6:05 AM
Unknown Object (File)
Tue, Nov 26, 5:06 AM
Unknown Object (File)
Fri, Nov 22, 11:58 AM
Unknown Object (File)
Tue, Nov 12, 5:15 PM
Unknown Object (File)
Tue, Nov 12, 8:51 AM
Unknown Object (File)
Tue, Nov 12, 7:57 AM
Unknown Object (File)
Tue, Nov 12, 3:30 AM
Unknown Object (File)
Tue, Nov 12, 1:09 AM
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