Minor - Plugins: Zoom - Add contact information when creating an event

BT#17288
pull/3433/head
Julio Montoya 5 years ago
parent 0259934efd
commit dbf0a46135
  1. 6
      plugin/zoom/lib/API/BaseMeetingTrait.php
  2. 2
      plugin/zoom/lib/ZoomPlugin.php

@ -27,4 +27,10 @@ trait BaseMeetingTrait
/** @var string description */
public $agenda;
/** @var string */
public $contact_name;
/** @var string */
public $contact_email;
}

@ -1266,6 +1266,8 @@ class ZoomPlugin extends Plugin
) {
$meetingInfoGet = MeetingInfoGet::fromTopicAndType($topic, MeetingInfoGet::TYPE_SCHEDULED);
$meetingInfoGet->duration = $duration;
$meetingInfoGet->contact_email = $user->getEmail();
$meetingInfoGet->contact_name = $user->getFullname();
$meetingInfoGet->start_time = $startTime->format(DateTimeInterface::ISO8601);
$meetingInfoGet->agenda = $agenda;
$meetingInfoGet->password = $password;

Loading…
Cancel
Save