mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-15 18:10:53 +01:00
(stable) Fix Conpherence theme variables for both logged-out and logged-in users
Summary: Ref T12622. Test Plan: As a logged-out and logged-in user, loaded Conpherence threads. Reviewers: chad Reviewed By: chad Maniphest Tasks: T12622 Differential Revision: https://secure.phabricator.com/D17768
This commit is contained in:
parent
72976909b1
commit
c65ef0401e
1 changed files with 3 additions and 2 deletions
|
@ -204,17 +204,18 @@ final class ConpherenceThread extends ConpherenceDAO
|
||||||
}
|
}
|
||||||
|
|
||||||
$user_participation = $this->getParticipantIfExists($viewer->getPHID());
|
$user_participation = $this->getParticipantIfExists($viewer->getPHID());
|
||||||
$theme_class = ConpherenceRoomSettings::COLOR_LIGHT;
|
$theme = ConpherenceRoomSettings::COLOR_LIGHT;
|
||||||
if ($user_participation) {
|
if ($user_participation) {
|
||||||
$user_seen_count = $user_participation->getSeenMessageCount();
|
$user_seen_count = $user_participation->getSeenMessageCount();
|
||||||
$participant = $this->getParticipant($viewer->getPHID());
|
$participant = $this->getParticipant($viewer->getPHID());
|
||||||
$settings = $participant->getSettings();
|
$settings = $participant->getSettings();
|
||||||
$theme = idx($settings, 'theme', $theme);
|
$theme = idx($settings, 'theme', $theme);
|
||||||
$theme_class = ConpherenceRoomSettings::getThemeClass($theme);
|
|
||||||
} else {
|
} else {
|
||||||
$user_seen_count = 0;
|
$user_seen_count = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$unread_count = $this->getMessageCount() - $user_seen_count;
|
$unread_count = $this->getMessageCount() - $user_seen_count;
|
||||||
|
$theme_class = ConpherenceRoomSettings::getThemeClass($theme);
|
||||||
|
|
||||||
$title = $this->getTitle();
|
$title = $this->getTitle();
|
||||||
$topic = $this->getTopic();
|
$topic = $this->getTopic();
|
||||||
|
|
Loading…
Reference in a new issue