Page MenuHomePhabricator

[keyserver] Modify `updateThread` to handle `avatar`s
ClosedPublic

Authored by atul on Apr 6 2023, 12:04 PM.
Tags
None
Referenced Files
F3407847: D7332.id24753.diff
Wed, Dec 4, 8:07 AM
F3407825: D7332.id24751.diff
Wed, Dec 4, 8:00 AM
F3407727: D7332.id24742.diff
Wed, Dec 4, 7:35 AM
F3407661: D7332.id24749.diff
Wed, Dec 4, 7:13 AM
F3405297: D7332.diff
Tue, Dec 3, 7:58 PM
Unknown Object (File)
Fri, Nov 8, 9:59 AM
Unknown Object (File)
Fri, Nov 8, 9:59 AM
Unknown Object (File)
Fri, Nov 8, 9:59 AM
Subscribers

Details

Summary

Able to send avatar setting change to keyserver and have it reflected in the DB.

Test Plan

Able to see avatar field populated in threads table:

0fc73d.png (260×1 px, 56 KB)

Able to see avatar change robotext (obviously needs to be changed):

Simulator Screenshot - Fresh iPhone 14 Pro - 2023-04-06 at 14.26.29.png (2×1 px, 322 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Thanks for combining the diffs for me!

keyserver/src/updaters/thread-updaters.js
360

This can just be if (avatar), no?

This revision is now accepted and ready to land.Apr 6 2023, 12:42 PM
keyserver/src/updaters/thread-updaters.js
360

Ah yeah, I was matching the description and threadType checks but those explicitly check null/undefined to handle empty string case. Since avatar is object we can do a simple truthiness check. I'll update.

rebase before addressing feedback

check avatar truthiness directly

This revision was landed with ongoing or failed builds.Apr 6 2023, 2:09 PM
This revision was automatically updated to reflect the committed changes.