@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Check is viewer is a participant before showing count

Summary: In Conpherence ProfileMenuItem we show an unread count if you're a participant, but all message count if you're not. Just remove that.

Test Plan: Log out of room in Conpherence, leave messages on second account, check menu item on both accounts.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D17664

+7 -2
+7 -2
src/applications/search/menuitem/PhabricatorConpherenceProfileMenuItem.php
··· 102 102 return array(); 103 103 } 104 104 105 - $data = $room->getDisplayData($viewer); 106 - $unread_count = $data['unread_count']; 105 + $participants = $room->getParticipants(); 106 + $viewer_phid = $viewer->getPHID(); 107 + $unread_count = null; 108 + if (isset($participants[$viewer_phid])) { 109 + $data = $room->getDisplayData($viewer); 110 + $unread_count = $data['unread_count']; 111 + } 107 112 108 113 $count = null; 109 114 if ($unread_count) {