mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-28 00:10:57 +01:00
Use most recent transaction in Conpherence notification menu
Summary: Not sure this ever worked correctly, but now once we have a supported action, skip the rest of the transactions. Currently you'll see a random old post. Test Plan: Test multiple rooms in various states with new messages, edits, new room titles, etc. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D16660
This commit is contained in:
parent
e828e7f889
commit
a3b2e422fe
1 changed files with 3 additions and 0 deletions
|
@ -286,6 +286,9 @@ final class ConpherenceThread extends ConpherenceDAO
|
|||
$message_transaction = null;
|
||||
$action_transaction = null;
|
||||
foreach ($transactions as $transaction) {
|
||||
if ($message_transaction || $action_transaction) {
|
||||
break;
|
||||
}
|
||||
switch ($transaction->getTransactionType()) {
|
||||
case PhabricatorTransactions::TYPE_COMMENT:
|
||||
$message_transaction = $transaction;
|
||||
|
|
Loading…
Reference in a new issue