eo->echoarea; // Catch our messages that we've posted, so they dont go back if (preg_match('/^@.+:/',$event->eo->from)) return; if ($ea && collect(config('matrix.rooms'))->contains($ea->name)) { Log::debug(sprintf('%s:- Sending echomail to matrix for [%s]',self::LOGKEY,$event->eo->msgid)); Notification::route('matrix',collect(config('matrix.rooms'))->search($ea->name))->notify(new Echomail($event->eo->withoutRelations())); } else { Log::debug(sprintf('%s:- Not sending echomail to matrix for [%s]',self::LOGKEY,$event->eo->msgid)); } } }