Page MenuHomePhabricator

[native] fix empty media gallery in thread settings
Needs ReviewPublic

Authored by ginsu on Thu, Jun 27, 12:28 AM.
Tags
None
Referenced Files
F2153563: D12581.diff
Sun, Jun 30, 5:24 PM
Unknown Object (File)
Thu, Jun 27, 11:33 PM
Unknown Object (File)
Thu, Jun 27, 7:22 PM
Unknown Object (File)
Thu, Jun 27, 12:42 AM
Unknown Object (File)
Thu, Jun 27, 12:42 AM
Unknown Object (File)
Thu, Jun 27, 12:39 AM
F2125153: Screen Recording 2024-06-26 at 5.54.53 PM.mov
Thu, Jun 27, 12:31 AM
Subscribers

Details

Reviewers
inka
Summary

We had a bug in our thread settings where we would show ui elements for the media gallery even if no items were present. This diff fixes that

Linear task: https://linear.app/comm/issue/ENG-3301/[native]-empty-media-gallery-looks-out-of-place

Test Plan

Please see the demo video below

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added a reviewer: inka.
ginsu added inline comments.
native/chat/settings/thread-settings-media-gallery.react.js
34

This is optional because we use this component in other places where we don't want the "See more" button.