Improve match of messages that come via matrix, so they dont get posted back
This commit is contained in:
parent
693e88bc01
commit
9d06b422e0
@ -29,7 +29,7 @@ class EchomailListener implements ShouldQueue
|
||||
$ea = $event->eo->echoarea;
|
||||
|
||||
// Catch our messages that we've posted, so they dont go back
|
||||
if (str_ends_with($event->eo->from,':'.config('matrix.server')))
|
||||
if (preg_match('/^@.+:/',$event->eo->from))
|
||||
return;
|
||||
|
||||
if ($ea && collect(config('matrix.rooms'))->contains($ea->name)) {
|
||||
|
Loading…
Reference in New Issue
Block a user