Page MenuHomePhabricator

[lib, native, web] Remove showingSidebarsInline variable and button text option "See threads..."
ClosedPublic

Authored by inka on Jul 19 2022, 7:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 10, 12:33 PM
Unknown Object (File)
Mon, May 6, 7:59 PM
Unknown Object (File)
Apr 12 2024, 10:15 AM
Unknown Object (File)
Apr 12 2024, 10:15 AM
Unknown Object (File)
Apr 12 2024, 10:15 AM
Unknown Object (File)
Apr 12 2024, 10:14 AM
Unknown Object (File)
Apr 12 2024, 10:13 AM
Unknown Object (File)
Apr 8 2024, 9:48 AM

Details

Summary

There was some obsolete code that got never called since diff D1487. It got removed.
showingSidebarsInline was indeed obsolete as the only function that used it - ChatThreadListSeeMoreSidebars - was called inside an ‘if’ not allowing sidebarsItems.length to be 0 and the variable was being set as showingSidebarsInline: sidebarItems.length !== 0
Thus the code defined for when showingSidebarsInline == 0 got removed as well.

Linear issue: https://linear.app/comm/issue/ENG-1426/delete-see-threads-button-text-option

Test Plan

Check that everything still compiles.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Jul 19 2022, 7:14 AM
inka retitled this revision from Remove showingSidebarsInline variable and button text option "See threads..." to [lib, native, web] Remove showingSidebarsInline variable and button text option "See threads...".Jul 19 2022, 7:20 AM

Thank you!!

native/chat/chat-thread-list-see-more-sidebars.react.js
28 ↗(On Diff #14646)

We can probably just move this to appear inline on line 38 now

web/chat/chat-thread-list-see-more-sidebars.react.js
24 ↗(On Diff #14646)

We can probably just move this to appear inline on line 36 now

This revision is now accepted and ready to land.Jul 19 2022, 8:47 AM

Inline variable buttonText in chat-thread-list-see-more-sidebars.react.js