Page MenuHomePhabricator

D12935.id31134.diff
No OneTemporary

D12935.id31134.diff

diff --git a/src/applications/conpherence/storage/ConpherenceThread.php b/src/applications/conpherence/storage/ConpherenceThread.php
--- a/src/applications/conpherence/storage/ConpherenceThread.php
+++ b/src/applications/conpherence/storage/ConpherenceThread.php
@@ -231,9 +231,14 @@
$handles = $this->getHandles();
$phids = $this->getOtherRecentParticipantPHIDs($viewer);
- $limit = 3;
- $more = (count($phids) > $limit);
- $phids = array_slice($phids, 0, $limit);
+ if (count($phids) == 0) {
+ $phids[] = $viewer->getPHID();
+ $more = false;
+ } else {
+ $limit = 3;
+ $more = (count($phids) > $limit);
+ $phids = array_slice($phids, 0, $limit);
+ }
$names = array_select_keys($handles, $phids);
$names = mpull($names, 'getName');

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 15, 5:31 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7383184
Default Alt Text
D12935.id31134.diff (801 B)

Event Timeline