Page MenuHomePhabricator

[lib] update threadLabel to handle thick threads
ClosedPublic

Authored by inka on Fri, Sep 13, 5:45 AM.
Tags
None
Referenced Files
F2760610: D13333.id44174.diff
Thu, Sep 19, 6:32 AM
F2754481: D13333.id44160.diff
Wed, Sep 18, 7:39 PM
F2753363: D13333.id44186.diff
Wed, Sep 18, 5:25 PM
Unknown Object (File)
Wed, Sep 18, 6:35 AM
Unknown Object (File)
Wed, Sep 18, 5:04 AM
Unknown Object (File)
Wed, Sep 18, 3:31 AM
Unknown Object (File)
Tue, Sep 17, 8:03 PM
Unknown Object (File)
Mon, Sep 16, 2:15 AM
Subscribers
None

Details

Summary

issue: ENG-9173

Test Plan

Tested that when creating a chat:

  • if a chat for the selected list of users exists and is thin, proper label for the thin tye is shown
  • if the chat for the selected list of users doesn't exist - "Local DM" is shown, with a lock icon

Tested that in thread settings:

  • if thread is thick, "Local DM" is shown, with a lock icon
  • if thread is thick sidebar, "Thread" with the align-right icon is shown
  • if thread is thin, proper label and icon are shown

Diff Detail

Repository
rCOMM Comm
Branch
inka/fix_marcin
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Fri, Sep 13, 6:02 AM
tomek added inline comments.
lib/shared/thread-utils.js
1223–1224 ↗(On Diff #44159)

Isn't it already handled by threadTypeIsSidebar(threadType)?

This revision is now accepted and ready to land.Fri, Sep 13, 6:07 AM