mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +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:
parent
d24b3dcb7d
commit
76d360740e
1 changed files with 9 additions and 1 deletions
|
@ -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(),
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue