Skip to content

Commit

Permalink
Added state validation in getting roommembers
Browse files Browse the repository at this point in the history
  • Loading branch information
stevandoMoodle committed Mar 13, 2023
1 parent 668b09f commit df240cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/src/Traits/MatrixSynapseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private function validateRoomInviter(string $roomID, string $userID): ?array
private function getRoomMember(string $roomID, string $userID): ?object
{
$entityManager = $this->getDoctrine()->getManager();
return $entityManager->getRepository(Roommembers::class)->findOneBy(['roomid' => $roomID, 'userid' => $userID]);
return $entityManager->getRepository(Roommembers::class)->findOneBy(['roomid' => $roomID, 'userid' => $userID, 'state' => null]);
}

/**
Expand Down

0 comments on commit df240cc

Please sign in to comment.