method getActiveChats documentation in bbn\Appui\Chat
Deprecated??
function()
{
if ($chats = $this->getChats()) {
$t =& $this;
$d = new \DateTime();
$d->sub(new \DateInterval('PT20M'));
if ($chats = array_filter(
$chats, function ($c) use ($d, $t) {
return ($m = $t->getMessages($c, $d->getTimestamp())) && !empty($m['messages']);
}
)
) {
return array_map(
function ($c) use ($d, $t) {
return [
'id' => $c,
'messages' => ($m = $t->getMessages($c)) ? $m['messages'] : [],
'partecipants' => $t->getParticipants($c),
'has_old' => $t->hasOldMessages($c, $d->getTimestamp() - 1)
];
}, $chats
);
}
}
return [];
}
Deprecated?? BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions