public function getParticipantIDs($excludeLeftParticipants = false) {
$conditions = new PreparedStatementConditionBuilder();
$conditions->add("conversationID = ?", array($this->conversationID));
- if ($excludeLeftParticipants) $conditions->add("hideConversation <> ?", array(2));
+ if ($excludeLeftParticipants) $conditions->add("hideConversation <> ?", array(self::STATE_LEFT));
$sql = "SELECT participantID
FROM wcf".WCF_N."_conversation_to_user
AND hideConversation = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array(
- 0,
+ Conversation::STATE_DEFAULT,
$conversation->conversationID,
- 1
+ Conversation::STATE_HIDDEN
));
}