Page MenuHomePhabricator

[lib] update threadLabel to handle thick threads
ClosedPublic

Authored by inka on Sep 13 2024, 5:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 1:01 PM
Unknown Object (File)
Thu, Nov 14, 12:59 PM
Unknown Object (File)
Tue, Nov 12, 4:06 PM
Unknown Object (File)
Sat, Nov 9, 7:50 AM
Unknown Object (File)
Oct 20 2024, 2:58 PM
Unknown Object (File)
Oct 20 2024, 2:58 PM
Unknown Object (File)
Oct 20 2024, 2:58 PM
Unknown Object (File)
Oct 20 2024, 2:56 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Sep 13 2024, 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.Sep 13 2024, 6:07 AM