Page MenuHomePhabricator

[keyserver] Introduce `constructMediaFromMediaMessageContentsAndUploadRows`
ClosedPublic

Authored by atul on Sep 20 2022, 7:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 12:51 AM
Unknown Object (File)
Tue, Dec 17, 5:38 PM
Unknown Object (File)
Tue, Dec 17, 5:31 PM
Unknown Object (File)
Mon, Dec 9, 6:49 PM
Unknown Object (File)
Sat, Dec 7, 6:04 AM
Unknown Object (File)
Thu, Dec 5, 9:32 AM
Unknown Object (File)
Tue, Dec 3, 11:50 PM
Unknown Object (File)
Fri, Nov 29, 4:11 AM
Subscribers

Details

Summary

Pull functionality out of fetchMediaFromMediaMessageContent(...) so it can be reused in rawMessageInfoFromRows(...) to reconstruct Media objects for MULTIMEDIA messages.

The difference between the two is that in fetchMediaFromMediaMessageContent(...) is we're fetching the upload rows whereas in rawMessageInfoFromRows(...) they're given to us.

In next diff we'll consume this function in rawMessageInfoFromRows to correctly pull MULTIMEDIA messages from the DB given the the content column of the message (stringified MediaMessageServerDBContent in addition to the upload rows.


Depends on D5191

Test Plan

Refactor, things continue to work as expected.

Diff Detail

Repository
rCOMM Comm
Branch
arcpatch-D5193 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

cut extraneous newline (if i had a nickel)

atul requested review of this revision.Sep 20 2022, 7:38 AM
This revision is now accepted and ready to land.Sep 21 2022, 6:29 AM
This revision was landed with ongoing or failed builds.Sep 21 2022, 1:39 PM
This revision was automatically updated to reflect the committed changes.