svg
This commit is contained in:
parent
c9cdc83cd4
commit
6db40533f5
|
@ -56,7 +56,7 @@ class ChatController extends Controller
|
||||||
|
|
||||||
|
|
||||||
// Récupération des message du groupe
|
// 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) {
|
foreach($messages as $message) {
|
||||||
$haveread = ($message->getReaders()->contains($user));
|
$haveread = ($message->getReaders()->contains($user));
|
||||||
$message->setHaveread($haveread);
|
$message->setHaveread($haveread);
|
||||||
|
|
Loading…
Reference in New Issue