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

Commit d95bb5e6 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

array object fix and sender fix

parent 0c3172b5
Loading
Loading
Loading
Loading
Loading
+6 −12
Original line number Diff line number Diff line
@@ -32,15 +32,13 @@ class InvitationMiddleware extends Middleware
			"meeting_head" => "Tentatively Accepted",
		],
		"accept" => [
			"meeting_title" => "Invitation Tentatively Accepted: %s",
			"meeting_body" =>
				"%s has tentatively accepted your invitation to %s on %s",
			"meeting_title" => "Invitation Accepted: %s",
			"meeting_body" => "%s has accepted your invitation to %s on %s",
			"meeting_head" => "Accepted",
		],
		"decline" => [
			"meeting_title" => "Invitation Tentatively Accepted: %s",
			"meeting_body" =>
				"%s has tentatively accepted your invitation to %s on %s",
			"meeting_title" => "Invitation Declined: %s",
			"meeting_body" => "%s has declined your invitation to %s on %s",
			"meeting_head" => "Declined",
		],
	];
@@ -168,12 +166,8 @@ class InvitationMiddleware extends Middleware
					$vObject = Reader::read($row2["calendardata"]);
					$SUMMARY = $vObject->VEVENT->SUMMARY;
					$datestart = (string) $vObject->VEVENT->DTSTART;
					$attendeeName = empty($vObject->VEVENT->ATTENDEE["CN"])
						? $sender
						: $vObject->VEVENT->ATTENDEE["CN"];
					$organizername = empty($vObject->VEVENT->ORGANIZER["CN"])
						? $recipient
						: $vObject->VEVENT->ORGANIZER["CN"];
					$attendeeName = $sender;
					$organizername = $recipient;
					if (str_contains($datestart, "T")) {
						$eventdate = date("F d, Y h:i", strtotime($datestart));
					} else {