Changed way to connect to api
This commit is contained in:
@ -146,7 +146,7 @@ class Message implements Model
|
||||
|
||||
public function doesHaveAttachments(): Message
|
||||
{
|
||||
if (!isset($this->getState()['has_attachments'])) {
|
||||
if (!isset($this->getStates()['has_attachments'])) {
|
||||
$this->newState('has_attachments');
|
||||
}
|
||||
$this->getState('has_attachments')->setValue(true);
|
||||
|
Reference in New Issue
Block a user