Skip to content

Commit

Permalink
Also notify people which are in the call/room since they might not re…
Browse files Browse the repository at this point in the history
…ad the chat

Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Nov 20, 2017
1 parent 2a68f59 commit 3117a55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Chat/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,13 @@ private function shouldUserBeNotified($userId, IComment $comment) {

try {
$room = $this->manager->getRoomById($comment->getObjectId());
$participant = $room->getParticipant($userId);
$room->getParticipant($userId);
} catch (RoomNotFoundException $e) {
return false;
} catch (ParticipantNotFoundException $e) {
return false;
}

return $participant->getSessionId() === '0';
return true;
}
}

0 comments on commit 3117a55

Please sign in to comment.