Commit 33f55e71 authored by Mark Harding's avatar Mark Harding

(fix): do not do a strict check in array

1 merge request!254&37 - Multi-currency
Pipeline #78706502 passed with stages
in 13 minutes and 58 seconds
......@@ -75,14 +75,14 @@ class Events
$user = $params['user'];
if ($entity instanceof Entities\Message) {
if (in_array($user->guid, array_keys($entity->getMessages()), true)) {
if (in_array($user->guid, array_keys($entity->getMessages()), false)) {
$event->setResponse(true);
} else {
$event->setResponse(false);
}
}
if ($entity instanceof Entities\Conversation) {
if (in_array($user->guid, $entity->getParticipants(), true)) {
if (in_array($user->guid, $entity->getParticipants(), false)) {
$event->setResponse(true);
} else {
$event->setResponse(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment