Page MenuHomePhabricator

D17664.id42486.diff
No OneTemporary

D17664.id42486.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
Sun, Mar 16, 7:41 AM (6 d, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7469299
Default Alt Text
D17664.id42486.diff (779 B)

Event Timeline