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

Commit 302aa48b authored by Maximilian Martin's avatar Maximilian Martin
Browse files

remove property X-APPLE-STRUCTURED-LOCATION upon location update

parent bf456a9c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -307,6 +307,9 @@ const mutations = {
	 * @param {string} data.location New location to set
	 */
	changeLocation(state, { calendarObjectInstance, location }) {
		// Special case: delete Apple-specific location property to avoid inconsistencies
		calendarObjectInstance.eventComponent.deleteAllProperties('X-APPLE-STRUCTURED-LOCATION')

		calendarObjectInstance.eventComponent.location = location
		calendarObjectInstance.location = location
	},