Page MenuHomePhabricator

[native] Update avatar hooks to support skipping keyserver upload
ClosedPublic

Authored by bartek on Wed, Sep 11, 10:57 AM.
Tags
None
Referenced Files
F2761526: D13294.id44050.diff
Thu, Sep 19, 8:31 AM
F2756643: D13294.id44153.diff
Thu, Sep 19, 12:42 AM
Unknown Object (File)
Wed, Sep 18, 3:59 PM
Unknown Object (File)
Wed, Sep 18, 3:45 PM
Unknown Object (File)
Wed, Sep 18, 9:50 AM
Unknown Object (File)
Tue, Sep 17, 1:04 PM
Unknown Object (File)
Mon, Sep 16, 11:21 PM
Unknown Object (File)
Mon, Sep 16, 12:25 PM
Subscribers

Details

Summary

Update avatar-hooks for uploading media to support a flag whether to upload metadata to keyserver. This bases on mechanism introduced in D13280

Depends on D13286

Test Plan

This is tested together with next diffs in the stack

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Wed, Sep 11, 11:30 AM
bartek added inline comments.
native/avatars/avatar-hooks.js
430 ↗(On Diff #44049)

This will be assigned basing on thread type in D13297

tomek added inline comments.
native/avatars/avatar-hooks.js
56 ↗(On Diff #44049)

This isn't too readable on the call sites. How about replacing it with metadataLocation: 'keyserver' | 'blob_service'?

248 ↗(On Diff #44049)

Why do we introduce this call?

This revision is now accepted and ready to land.Thu, Sep 12, 12:42 AM
native/avatars/avatar-hooks.js
56 ↗(On Diff #44049)

Metadata location is never blob-service. It's either keyserver or none (then it's caller responsibility to manage this)

native/avatars/avatar-hooks.js
56 ↗(On Diff #44049)

Ah, ok. So maybe keyserver | none?

native/avatars/avatar-hooks.js
56 ↗(On Diff #44049)

Yep, this looks much better, thanks!