This commit is contained in:
afornerot 2020-04-15 17:44:17 +02:00
parent c9cdc83cd4
commit 6db40533f5
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class ChatController extends Controller
// Récupération des message du groupe
$messages=$em->getRepository("CadolesWebsocketBundle:Message")->findBy(["group"=>$group],["submitdate"=>"DESC"],100);
$messages=$em->getRepository("CadolesWebsocketBundle:Message")->findBy(["group"=>$group],["submitdate"=>"DESC"],30);
foreach($messages as $message) {
$haveread = ($message->getReaders()->contains($user));
$message->setHaveread($haveread);