Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14002115
D17664.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
779 B
Referenced Files
None
Subscribers
None
D17664.id.diff
View Options
diff --git a/src/applications/search/menuitem/PhabricatorConpherenceProfileMenuItem.php b/src/applications/search/menuitem/PhabricatorConpherenceProfileMenuItem.php
--- a/src/applications/search/menuitem/PhabricatorConpherenceProfileMenuItem.php
+++ b/src/applications/search/menuitem/PhabricatorConpherenceProfileMenuItem.php
@@ -102,8 +102,13 @@
return array();
}
- $data = $room->getDisplayData($viewer);
- $unread_count = $data['unread_count'];
+ $participants = $room->getParticipants();
+ $viewer_phid = $viewer->getPHID();
+ $unread_count = null;
+ if (isset($participants[$viewer_phid])) {
+ $data = $room->getDisplayData($viewer);
+ $unread_count = $data['unread_count'];
+ }
$count = null;
if ($unread_count) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 26, 3:21 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6750882
Default Alt Text
D17664.id.diff (779 B)
Attached To
Mode
D17664: Check is viewer is a participant before showing count
Attached
Detach File
Event Timeline
Log In to Comment