Page MenuHomePhabricator

D17664.id.diff
No OneTemporary

D17664.id.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, 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)

Event Timeline