1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 14:30:56 +01:00

Conpherence - grey out username mentions if they aren't in the conpherence

Summary: Fixes T7578. This was pretty easy because conpherence funnels all transacton stuff through this spot

Test Plan: made a new room so only my user was a participant. wrote "@myself will work and @anotherguy will be greyed out" and so it was as expected

Reviewers: chad, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7578

Differential Revision: https://secure.phabricator.com/D12114
This commit is contained in:
Bob Trahan 2015-03-24 13:08:53 -07:00
parent 014bb72050
commit dcaafd6159

View file

@ -143,7 +143,8 @@ final class ConpherenceTransactionView extends AphrontView {
$handles = $conpherence->getHandles(); $handles = $conpherence->getHandles();
$rendered_transactions = array(); $rendered_transactions = array();
$engine = id(new PhabricatorMarkupEngine()) $engine = id(new PhabricatorMarkupEngine())
->setViewer($user); ->setViewer($user)
->setContextObject($conpherence);
foreach ($transactions as $key => $transaction) { foreach ($transactions as $key => $transaction) {
if ($transaction->shouldHide()) { if ($transaction->shouldHide()) {
unset($transactions[$key]); unset($transactions[$key]);