Page MenuHomePhabricator

Add a Conpherence Profile Menu Item
ClosedPublic

Authored by chad on Apr 12 2017, 7:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 9, 2:00 AM
Unknown Object (File)
Mon, Dec 9, 2:00 AM
Unknown Object (File)
Mon, Dec 9, 2:00 AM
Unknown Object (File)
Mon, Dec 9, 1:56 AM
Unknown Object (File)
Mon, Dec 9, 12:29 AM
Unknown Object (File)
Fri, Dec 6, 12:42 AM
Unknown Object (File)
Sat, Nov 30, 12:10 PM
Unknown Object (File)
Oct 24 2024, 9:39 PM
Subscribers

Details

Summary

Builds a Conpherence Profile Menu Item, complete with counts for the unreads. This allows pinning to home as well as swapping out thread list in Conpherence for pinning eventually.

Test Plan

Add a menu item, chat in room, log into other account, see room count. Room count disappears after viewing.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley added inline comments.
src/applications/search/menuitem/PhabricatorConpherenceProfileMenuItem.php
50–51

(Do we need these both? We probably shouldn't, but can fix that eventually...)

This revision is now accepted and ready to land.Apr 12 2017, 8:04 PM
src/applications/search/menuitem/PhabricatorConpherenceProfileMenuItem.php
50–51

Oddly yes, I get a fatal otherwise, but I also will use the images when I implement this in full Conpherence.

This revision was automatically updated to reflect the committed changes.

Also, is unread count meaningful/valid when you haven't joined a thread? It's vaguely possible it does something super broken like "slowly count every message, display 29,239", since the only other place we use it (I think?) is the menu, which only shows threads you're part of.

Oh, I didn't test that. I assumed it wouldn't return anything if you weren't a participant. Will follow up.

I bet it's fine, but this code is definitely all a touch shaky.