Page MenuHomePhabricator

[lib] Introduce `getMinimallyEncodedCurrentUser`
ClosedPublic

Authored by atul on Nov 13 2023, 10:47 AM.
Tags
None
Referenced Files
F3242575: D9840.diff
Wed, Nov 13, 11:26 PM
Unknown Object (File)
Wed, Nov 13, 1:14 AM
Unknown Object (File)
Oct 15 2024, 1:19 AM
Unknown Object (File)
Oct 15 2024, 1:19 AM
Unknown Object (File)
Oct 15 2024, 1:19 AM
Unknown Object (File)
Oct 15 2024, 1:14 AM
Unknown Object (File)
Sep 14 2024, 5:09 PM
Unknown Object (File)
Sep 10 2024, 9:23 PM
Subscribers

Details

Summary

Unfortunately was not able to update getCurrentUser to handle both ThreadInfo|RawThreadInfo AND MinimallyEncodedRawThreadInfo while keeping flow happy.

Here was where I ended up in my attempts:
https://gist.github.com/atulsmadhugiri/cdaa18c6883a5636d1e035b520c47e79#file-blah-js

Fortunately, getCurrentUser info is only used in two places in thread-utils and those can be updated with minimallyEncoded toggle.


Depends on D9839

Test Plan

Will add unit tests once Flow issues are resolved.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable