Page MenuHomePhabricator

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

Authored by atul on Sep 20 2022, 4:00 AM.
Tags
None
Referenced Files
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
Unknown Object (File)
Sat, Nov 2, 1:12 PM
Unknown Object (File)
Oct 11 2024, 1:31 AM
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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

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.