Page MenuHomePhabricator

D17664.diff
No OneTemporary

D17664.diff

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

Mime Type
text/plain
Expires
Sat, Jul 19, 12:12 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8513528
Default Alt Text
D17664.diff (779 B)

Event Timeline