Page MenuHomePhabricator

[lib] Introduce `getUploadIDsFromMediaMessageServerDBContents(...)`
ClosedPublic

Authored by atul on Sep 20 2022, 4:00 AM.
Tags
None
Referenced Files
F3348900: D5190.id16895.diff
Fri, Nov 22, 4:27 PM
F3348763: D5190.id16956.diff
Fri, Nov 22, 4:00 PM
F3347270: D5190.diff
Fri, Nov 22, 11:35 AM
Unknown Object (File)
Mon, Nov 11, 2:51 AM
Unknown Object (File)
Sun, Nov 10, 4:13 AM
Unknown Object (File)
Sat, Nov 2, 1:15 PM
Unknown Object (File)
Sat, Nov 2, 1:15 PM
Unknown Object (File)
Sat, Nov 2, 1:15 PM
Subscribers

Details

Summary

Introduce getUploadIDsFromMediaMessageServerDBContents(...) and consume in fetchUploadsForMessage(...) and assignMessageContainerToMedia(...).

Simple refactor to reduce redundant code.

Addresses feedback from @ashoat here: https://phab.comm.dev/D5087#inline-33653

Test Plan

Simple refactor, things continue to work as expected when sending media messages. Set breakpoints and ensured that values at each step were as expected.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul retitled this revision from [lib] Introduce `getUploadIDsFromMediaMessageServerDBContents` to [lib] Introduce `getUploadIDsFromMediaMessageServerDBContents(...)`.
atul requested review of this revision.Sep 20 2022, 4:10 AM
This revision is now accepted and ready to land.Sep 21 2022, 7:28 AM
This revision was landed with ongoing or failed builds.Sep 21 2022, 12:53 PM
This revision was automatically updated to reflect the committed changes.