Skip to content

Commit

Permalink
Tweak format.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Sep 24, 2020
1 parent 102cd6d commit a26872d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/TelegramContactDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ public function loadMessages()
{
$message = new IncomingMessage(Contact::PATTERN, $this->event->get('from')['id'], $this->event->get('chat')['id'], $this->event);
$message->setContact(new Contact(
$this->event->get('contact')['phone_number']??"",
$this->event->get('contact')['first_name']??"",
$this->event->get('contact')['last_name']??"",
$this->event->get('contact')['phone_number'] ?? '',
$this->event->get('contact')['first_name'] ?? '',
$this->event->get('contact')['last_name'] ?? '',
$this->event->get('contact')['user_id'],
$this->event->get('contact')['vcard']??""
$this->event->get('contact')['vcard'] ?? ''
));

$this->messages = [$message];
Expand Down

0 comments on commit a26872d

Please sign in to comment.