'link' => DI::baseUrl() . '/message/' . $msg['id'],
];
- notification($notif_params);
+ DI::notify()->createFromArray($notif_params);
Logger::info('Mail is processed, notification was sent.', ['id' => $msg['id'], 'uri' => $msg['uri']]);
}
}
if (!$convid) {
- Logger::log('send message: conversation not found.');
+ Logger::notice('send message: conversation not found.');
return -4;
}
}
if (!$convid) {
- Logger::log('send message: conversation not found.');
+ Logger::notice('send message: conversation not found.');
return -4;
}