Page MenuHomePhabricator

D12302.id29537.diff
No OneTemporary

D12302.id29537.diff

diff --git a/src/applications/conpherence/view/ConpherencePeopleWidgetView.php b/src/applications/conpherence/view/ConpherencePeopleWidgetView.php
--- a/src/applications/conpherence/view/ConpherencePeopleWidgetView.php
+++ b/src/applications/conpherence/view/ConpherencePeopleWidgetView.php
@@ -9,12 +9,12 @@
$conpherence = $this->getConpherence();
$participants = $conpherence->getParticipants();
$handles = $conpherence->getHandles();
+ $handles = msort($handles, 'getName');
+ $head_handles = array_select_keys($handles, array($user->getPHID()));
+ $handles = $head_handles + $handles;
$body = array();
- // future proof by using participants to iterate through handles;
- // we may have non-people handles sooner or later
- foreach ($participants as $user_phid => $participant) {
- $handle = $handles[$user_phid];
+ foreach ($handles as $user_phid => $handle) {
$remove_html = '';
if ($user_phid == $user->getPHID()) {
$icon = id(new PHUIIconView())

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 22, 9:32 AM (4 w, 6 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6741342
Default Alt Text
D12302.id29537.diff (1 KB)

Event Timeline