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