Dont launch bot processing for rescanned messages

This commit is contained in:
Deon George
2021-09-13 23:02:39 +10:00
parent 79e613a811
commit 2cd6db2060
2 changed files with 8 additions and 2 deletions

View File

@@ -193,8 +193,8 @@ class MessageProcess implements ShouldQueue
$o->id,
));
// If the message is to a bot, we'll process it
if (! $this->skipbot)
// If the message is to a bot, but not rescanned, or purposely skipbot set, we'll process it
if ((! $this->skipbot) && (! $this->msg->rescanned->count()))
foreach (config('process.echomail') as $class) {
if ($class::handle($this->msg)) {
break;