Page MenuHomePhabricator

[lib] Fix crash when pressing message from anonymous author
ClosedPublic

Authored by ashoat on Sat, Jul 6, 2:42 PM.
Tags
None
Referenced Files
F2255243: D12680.id42088.diff
Fri, Jul 12, 6:37 PM
F2251387: D12680.id42116.diff
Fri, Jul 12, 8:56 AM
Unknown Object (File)
Thu, Jul 11, 7:34 PM
Unknown Object (File)
Thu, Jul 11, 9:05 AM
Unknown Object (File)
Wed, Jul 10, 8:47 PM
Unknown Object (File)
Tue, Jul 9, 12:07 PM
Unknown Object (File)
Mon, Jul 8, 1:57 PM
Unknown Object (File)
Mon, Jul 8, 1:57 PM
Subscribers
None

Details

Summary

If we don't have a username for a message author, the app currently crashing when you press the message.

It looks like the Flow types here are unnecessarily strict. Once I relaxed them, I was able to remove the invariant.

This resolves ENG-8777.

Depends on D12679

Test Plan

I reverted D12674 to reproduce the issue. I then created a new user from a separate account, and sent a message to my main user. The main user was able to press the message, react, and start a sidebar on the messages for the other user, even though the other user showed up as "anonymous"

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable