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

Commit baa50b72 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN Committed by Akhil
Browse files

task calendar created

parent 6ca0c69a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ ARG SNAPPY_VERSION="2.27.2"
ARG SNAPPY_THEME_VERSION="2.0.0"
ARG USER_MIGRATION_JOB_ID="608716"

RUN sed -i 's/25,0,6,1/25,0,6,5/' ${BASE_DIR}/version.php
RUN sed -i 's/25,0,6,1/25,0,6,6/' ${BASE_DIR}/version.php
COPY custom_entrypoint.sh /
RUN chmod +x /custom_entrypoint.sh
RUN mkdir -p /var/www/skeleton/Documents && mkdir -p /var/www/skeleton/Images
@@ -184,6 +184,7 @@ RUN patch -u ${BASE_DIR}/lib/private/Notification/Manager.php -i ${TMP_PATCH_DIR
RUN cd ${BASE_DIR} && patch -u ${BASE_DIR}/apps/user_ldap/lib/User_LDAP.php -i ${TMP_PATCH_DIR}/023-ldap-check-pwd-optimization.patch
RUN patch -u ${BASE_DIR}/lib/private/User/Manager.php -i ${TMP_PATCH_DIR}/025-optimize-get-by-email.patch
RUN patch -u ${BASE_DIR}/apps/dav/lib/Connector/Sabre/Principal.php -i ${TMP_PATCH_DIR}/027-displayname-user-leak-dav.patch
RUN patch -u ${BASE_DIR}/apps/dav/lib/HookManager.php -i ${TMP_PATCH_DIR}/028-default-task-calendar.patch
RUN rm -rf ${TMP_PATCH_DIR}

RUN curl -fsSL -o ldap_write_support.tar.gz \
+20 −0
Original line number Diff line number Diff line
From: Avinash Gusain <avinash.gusain.ext@murena.com>
Date: Fri, 16 June 2023 18:50:00 +0530
Subject: [PATCH] Create a task calendar on first login

This patch creates a default task VTODO calender on first login

--- ./apps/dav/lib/HookManager.php	2023-06-16 19:01:35.894535512 +0530
+++ ./apps/dav/lib/HookManager-new.php	2023-06-16 19:07:09.374531373 +0530
@@ -179,6 +179,11 @@
 						'{http://apple.com/ns/ical/}calendar-color' => $this->themingDefaults->getColorPrimary(),
 						'components' => 'VEVENT'
 					]);
+					$this->calDav->createCalendar($principal, 'tasks', [
+						'{DAV:}displayname' => 'Tasks',
+						'{http://apple.com/ns/ical/}calendar-color' => $this->themingDefaults->getColorPrimary(),
+						'components' => 'VTODO'
+					]);
 				} catch (\Exception $e) {
 					\OC::$server->get(LoggerInterface::class)->error($e->getMessage(), ['exception' => $e]);
 				}