Page MenuHomePhabricator

[lib] Introduce `getMinimallyEncodedCurrentUser`
ClosedPublic

Authored by atul on Nov 13 2023, 10:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 16 2024, 8:43 PM
Unknown Object (File)
Nov 16 2024, 8:43 PM
Unknown Object (File)
Nov 16 2024, 8:43 PM
Unknown Object (File)
Nov 16 2024, 8:38 PM
Unknown Object (File)
Nov 15 2024, 3:14 AM
Unknown Object (File)
Nov 15 2024, 12:55 AM
Unknown Object (File)
Nov 14 2024, 8:44 PM
Unknown Object (File)
Nov 13 2024, 11:26 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