Page MenuHomePhabricator

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

Authored by atul on Apr 6 2023, 12:04 PM.
Tags
None
Referenced Files
F3737182: D7332.id24753.diff
Thu, Jan 9, 7:36 AM
F3737181: D7332.id24751.diff
Thu, Jan 9, 7:36 AM
F3737179: D7332.id24749.diff
Thu, Jan 9, 7:36 AM
F3737178: D7332.id24742.diff
Thu, Jan 9, 7:36 AM
F3737161: D7332.id.diff
Thu, Jan 9, 7:36 AM
F3737122: D7332.diff
Thu, Jan 9, 7:31 AM
Unknown Object (File)
Dec 8 2024, 6:33 PM
Unknown Object (File)
Dec 8 2024, 6:33 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Thanks for combining the diffs for me!

keyserver/src/updaters/thread-updaters.js
360 ↗(On Diff #24742)

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 ↗(On Diff #24742)

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.