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
F2108629: D4577.diff
Tue, Jun 25, 1:39 PM
Unknown Object (File)
Fri, Jun 21, 5:14 PM
Unknown Object (File)
Fri, Jun 21, 5:14 PM
Unknown Object (File)
Fri, Jun 21, 5:14 PM
Unknown Object (File)
Fri, Jun 21, 5:14 PM
Unknown Object (File)
Fri, Jun 21, 5:08 PM
Unknown Object (File)
Wed, Jun 19, 7:54 AM
Unknown Object (File)
Thu, Jun 13, 12:51 PM

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
Branch
inka/delete_see_threads_text
Lint
No Lint Coverage
Unit
No Test Coverage

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

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

web/chat/chat-thread-list-see-more-sidebars.react.js
24

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