Differential D19789 Diff 47302 src/applications/conpherence/query/ConpherenceParticipantCountQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/query/ConpherenceParticipantCountQuery.php
| Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | if ($this->unread !== null) { | ||||
| 'participant.seenMessageCount < thread.messageCount'); | 'participant.seenMessageCount < thread.messageCount'); | ||||
| } else { | } else { | ||||
| $where[] = qsprintf( | $where[] = qsprintf( | ||||
| $conn, | $conn, | ||||
| 'participant.seenMessageCount >= thread.messageCount'); | 'participant.seenMessageCount >= thread.messageCount'); | ||||
| } | } | ||||
| } | } | ||||
| return $this->formatWhereClause($where); | return $this->formatWhereClause($conn, $where); | ||||
| } | } | ||||
| private function buildGroupByClause(AphrontDatabaseConnection $conn) { | private function buildGroupByClause(AphrontDatabaseConnection $conn) { | ||||
| return qsprintf( | return qsprintf( | ||||
| $conn, | $conn, | ||||
| 'GROUP BY participantPHID'); | 'GROUP BY participantPHID'); | ||||
| } | } | ||||
| } | } | ||||