Page MenuHomePhabricator

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

Authored by atul on Apr 6 2023, 12:04 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Thu, Nov 7, 10:50 AM
Unknown Object (File)
Thu, Nov 7, 10:49 AM
Unknown Object (File)
Tue, Nov 5, 2:30 AM
Unknown Object (File)
Tue, Nov 5, 2:29 AM
Unknown Object (File)
Tue, Nov 5, 2:29 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
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.