1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 13:22:42 +01:00

Conpherence - don't lose title glyph when switching between messages

Summary: Fixes T7735

Test Plan: switched threads in main conpherence view and observed working title glyph.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7735

Differential Revision: https://secure.phabricator.com/D12305
This commit is contained in:
Bob Trahan 2015-04-08 13:46:41 -07:00
parent d24b3dcb7d
commit 76d360740e

View file

@ -90,6 +90,14 @@ final class ConpherenceThreadListView extends AphrontView {
$epoch = $data['epoch']; $epoch = $data['epoch'];
$image = $data['image']; $image = $data['image'];
$dom_id = $thread->getPHID().'-nav-item'; $dom_id = $thread->getPHID().'-nav-item';
$glyph_pref = PhabricatorUserPreferences::PREFERENCE_TITLES;
$preferences = $user->loadPreferences();
if ($preferences->getPreference($glyph_pref) == 'glyph') {
$glyph = id(new PhabricatorConpherenceApplication())
->getTitleGlyph().' ';
} else {
$glyph = null;
}
return id(new ConpherenceMenuItemView()) return id(new ConpherenceMenuItemView())
->setUser($user) ->setUser($user)
@ -103,7 +111,7 @@ final class ConpherenceThreadListView extends AphrontView {
->addSigil('conpherence-menu-click') ->addSigil('conpherence-menu-click')
->setMetadata( ->setMetadata(
array( array(
'title' => $data['js_title'], 'title' => $glyph.$data['js_title'],
'id' => $dom_id, 'id' => $dom_id,
'threadID' => $thread->getID(), 'threadID' => $thread->getID(),
)); ));