Skip to content

Commit

Permalink
fix #1227
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Mar 29, 2024
1 parent 1d36d15 commit b5edd93
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
22 changes: 15 additions & 7 deletions core/Services/CalDAV.vala
Original file line number Diff line number Diff line change
Expand Up @@ -765,21 +765,29 @@ public class Services.CalDAV : GLib.Object {
}

public bool is_vtodo (GXml.DomElement element) {
bool return_value = false;
GXml.DomHTMLCollection propstat = element.get_elements_by_tag_name ("d:propstat");

GXml.DomElement propstat = element.get_elements_by_tag_name ("d:propstat").get_element (0);
GXml.DomElement prop = propstat.get_elements_by_tag_name ("d:prop").get_element (0);
GXml.DomHTMLCollection getcontenttype = prop.get_elements_by_tag_name ("d:getcontenttype");
if (propstat.length <= 0) {
return false;
}

GXml.DomHTMLCollection prop = propstat.get_element (0).get_elements_by_tag_name ("d:prop");

if (prop.length <= 0) {
return false;
}

GXml.DomHTMLCollection getcontenttype = prop.get_element (0).get_elements_by_tag_name ("d:getcontenttype");

if (getcontenttype.length <= 0) {
return return_value;
return false;
}

if (getcontenttype.get_element (0).text_content.index_of ("vtodo") > -1) {
return_value = true;
return true;
}

return return_value;
return false;
}

/*
Expand Down
12 changes: 12 additions & 0 deletions data/io.github.alainm23.planify.appdata.xml.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@
<url type="donation">https://www.patreon.com/alainm23</url>
<launchable type="desktop-id">@appid@.desktop</launchable>
<releases>
<release version="4.5.12" date="2024-03-29">
<description translatable="no">
<ul>
<li>Fixed bug when syncing on Nextcloud.</li>
<li>Dutch translation update thanks to @Gert-dev.</li>
<li>Spanish translation update thanks to @haggen88.</li>
<li>German translation update thanks to @bestlinuxgamers.</li>
<li>Hindi translation update thanks to @Scrambled777.</li>
</ul>
</description>
</release>

<release version="4.5.11" date="2024-03-28">
<description translatable="no">
<ul>
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'io.github.alainm23.planify',
'vala', 'c',
version: '4.5.11'
version: '4.5.12'
)

gnome = import('gnome')
Expand Down

0 comments on commit b5edd93

Please sign in to comment.