Commit b44ff53c authored by Jack'lul's avatar Jack'lul

restore getNewChatParticipant() getLeftChatParticipant() for compatiblity...

restore getNewChatParticipant() getLeftChatParticipant() for compatiblity purposes, new_chat_participant and left_chat_participant = new_chat_member and left_chat_member
parent 3da71cd2
......@@ -190,6 +190,18 @@ class Message extends Entity
$this->type = 'Venue';
}
$this->new_chat_member = isset($data['new_chat_participant']) ? $data['new_chat_participant'] : null;
if (!empty($this->new_chat_member)) {
$this->new_chat_member = new User($this->new_chat_member);
$this->type = 'new_chat_member';
}
$this->left_chat_member = isset($data['left_chat_participant']) ? $data['left_chat_participant'] : null;
if (!empty($this->left_chat_member)) {
$this->left_chat_member = new User($this->left_chat_member);
$this->type = 'left_chat_member';
}
$this->new_chat_member = isset($data['new_chat_member']) ? $data['new_chat_member'] : null;
if (!empty($this->new_chat_member)) {
$this->new_chat_member = new User($this->new_chat_member);
......@@ -407,6 +419,16 @@ class Message extends Entity
return $this->venue;
}
public function getNewChatParticipant()
{
return $this->new_chat_member;
}
public function getLeftChatParticipant()
{
return $this->left_chat_member;
}
public function getNewChatMember()
{
return $this->new_chat_member;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment