Page MenuHomePhabricator

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

Authored by atul on Sep 20 2022, 4:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 5:26 PM
Unknown Object (File)
Tue, Apr 30, 5:26 PM
Unknown Object (File)
Tue, Apr 30, 5:26 PM
Unknown Object (File)
Tue, Apr 30, 5:26 PM
Unknown Object (File)
Tue, Apr 30, 5:26 PM
Unknown Object (File)
Sun, Apr 28, 9:38 PM
Unknown Object (File)
Sun, Apr 28, 9:38 PM
Unknown Object (File)
Sun, Apr 28, 9:38 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.