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:
@@ -90,6 +90,14 @@ final class ConpherenceThreadListView extends AphrontView {
|
||||
$epoch = $data['epoch'];
|
||||
$image = $data['image'];
|
||||
$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())
|
||||
->setUser($user)
|
||||
@@ -103,7 +111,7 @@ final class ConpherenceThreadListView extends AphrontView {
|
||||
->addSigil('conpherence-menu-click')
|
||||
->setMetadata(
|
||||
array(
|
||||
'title' => $data['js_title'],
|
||||
'title' => $glyph.$data['js_title'],
|
||||
'id' => $dom_id,
|
||||
'threadID' => $thread->getID(),
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user