Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15383664
D12935.id31134.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
801 B
Referenced Files
None
Subscribers
None
D12935.id31134.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12935: Conpherence - make solo conversations be titled with viewer's name
Attached
Detach File
Event Timeline
Log In to Comment