1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-18 19:40:55 +01:00

Don't mark a thread as seen if durable column is minimized

Summary: More work to do here on the JS side, but this at least makes sure users with a small chat window have some notification marked that new replies have not been seen.

Test Plan: Open two windows. Window 1 has durable minimized, Window 2 is full conpherence. Send a message from Window 2, see header count in Window 1 increase. Repeat with durable open, see no change in window.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D16650
This commit is contained in:
Chad Little 2016-10-02 20:09:43 -07:00
parent a591b86d91
commit da1ed2c63a

View file

@ -607,8 +607,13 @@ final class ConpherenceUpdateController
$user, $user,
$conpherence, $conpherence,
!$minimal_display); !$minimal_display);
$participant_obj = $conpherence->getParticipant($user->getPHID()); $key = PhabricatorConpherenceColumnMinimizeSetting::SETTINGKEY;
$participant_obj->markUpToDate($conpherence, $data['latest_transaction']); $minimized = $user->getUserSetting($key);
if (!$minimized) {
$participant_obj = $conpherence->getParticipant($user->getPHID());
$participant_obj
->markUpToDate($conpherence, $data['latest_transaction']);
}
} else if ($need_transactions) { } else if ($need_transactions) {
$non_update = true; $non_update = true;
$data = array(); $data = array();