mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Conpherence - make solo conversations be titled with viewer's name
Summary: Fixes T8251. I think this used to be "lucky handle" when it was all one giant terrible function, so restore previous functionality and have the title be the viewer's name in this case. Test Plan: rocked a solo conpherence and saw my username as the title Reviewers: chad, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T8251 Differential Revision: https://secure.phabricator.com/D12935
This commit is contained in:
parent
3845057efb
commit
596db64ee6
1 changed files with 8 additions and 3 deletions
|
@ -231,9 +231,14 @@ final class ConpherenceThread extends ConpherenceDAO
|
||||||
$handles = $this->getHandles();
|
$handles = $this->getHandles();
|
||||||
$phids = $this->getOtherRecentParticipantPHIDs($viewer);
|
$phids = $this->getOtherRecentParticipantPHIDs($viewer);
|
||||||
|
|
||||||
$limit = 3;
|
if (count($phids) == 0) {
|
||||||
$more = (count($phids) > $limit);
|
$phids[] = $viewer->getPHID();
|
||||||
$phids = array_slice($phids, 0, $limit);
|
$more = false;
|
||||||
|
} else {
|
||||||
|
$limit = 3;
|
||||||
|
$more = (count($phids) > $limit);
|
||||||
|
$phids = array_slice($phids, 0, $limit);
|
||||||
|
}
|
||||||
|
|
||||||
$names = array_select_keys($handles, $phids);
|
$names = array_select_keys($handles, $phids);
|
||||||
$names = mpull($names, 'getName');
|
$names = mpull($names, 'getName');
|
||||||
|
|
Loading…
Reference in a new issue