Fix event when join notifications are on

This commit is contained in:
Daniel Berteaud 2015-08-07 18:00:28 +02:00
parent 71ba31b773
commit 660d84247b
1 changed files with 2 additions and 2 deletions

4
vroom
View File

@ -2122,11 +2122,11 @@ any '/api' => sub {
# Send notifications
my $recipients = $self->get_email_notifications($room->{name});
foreach my $rcpt (keys %{$recipients}){
$self->log_event(
$self->log_event({
event => 'join_notification',
msg => 'Sending an email to ' . $recipients->{$rcpt}->{email} .
' to inform that someone joined room ' . $room->{name}
);
});
my $sent = $self->mail(
to => $recipients->{$rcpt}->{email},
subject => $subj,