Ensure Echomail is initialised correctly
This commit is contained in:
parent
b45e2c6dd8
commit
9721db185b
@ -60,6 +60,7 @@ final class Test extends Process
|
||||
$eo = Echoarea::where('name',$msg->echoarea)->single();
|
||||
|
||||
$o = new Echomail;
|
||||
$o->init();
|
||||
$o->to = $msg->user_from;
|
||||
$o->from = Setup::PRODUCT_NAME;
|
||||
$o->subject = 'Test Reply';
|
||||
|
@ -205,6 +205,8 @@ class MessageProcess implements ShouldQueue
|
||||
|
||||
// We know about this area, store it
|
||||
$o = new Echomail;
|
||||
$o->init();
|
||||
|
||||
$o->to = $this->msg->user_to;
|
||||
$o->from = $this->msg->user_from;
|
||||
$o->subject = $this->msg->subject;
|
||||
|
@ -140,6 +140,13 @@ final class Echomail extends Model implements Packet
|
||||
|
||||
/* METHODS */
|
||||
|
||||
public function init(): void
|
||||
{
|
||||
$this->set_path = collect();
|
||||
$this->set_seenby = collect();
|
||||
$this->set_packet = NULL;
|
||||
}
|
||||
|
||||
public function jsonSerialize(): array
|
||||
{
|
||||
return $this->encode();
|
||||
|
Loading…
Reference in New Issue
Block a user