Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit b3ba8f07 authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Create Talk rooms for appointments

parent a1f50bc3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -165,7 +165,8 @@ class AppointmentConfigController extends Controller {
		?array $calendarFreeBusyUris = null,
		?int $start = null,
		?int $end = null,
		?int $futureLimit = null): JsonResponse {
		?int $futureLimit = null,
		?bool $createTalkRoom = false): JsonResponse {
		if ($this->userId === null) {
			return JsonResponse::fail();
		}
@@ -241,7 +242,8 @@ class AppointmentConfigController extends Controller {
		?array $calendarFreeBusyUris = null,
		?int $start = null,
		?int $end = null,
		?int $futureLimit = null): JsonResponse {
		?int $futureLimit = null,
		?bool $createTalkRoom = false): JsonResponse {
		if ($this->userId === null) {
			return JsonResponse::fail(null, Http::STATUS_NOT_FOUND);
		}
+2 −1
Original line number Diff line number Diff line
@@ -204,7 +204,8 @@ class AppointmentConfig extends Entity implements JsonSerializable {
			'totalLength' => $this->getTotalLength(),
			'timeBeforeNextSlot' => $this->getTimeBeforeNextSlot(),
			'dailyMax' => $this->getDailyMax(),
			'futureLimit' => $this->getFutureLimit()
			'futureLimit' => $this->getFutureLimit(),
			'createTalkRoom' => false,
		];
	}
}