Skip to content

Commit

Permalink
fix: use MailItem.Type.UNKNOWN to set custom metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
drazen04 committed Nov 11, 2024
1 parent 7264ab0 commit bd65576
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public Element handle(Element request, Map<String, Object> context) throws Servi
var group = getFolderById(mbox, octxt, id)
.orElseThrow(() -> ServiceException.OPERATION_DENIED("Calendar group with ID " + req.getId() + " does NOT exist"));

mbox.setCustomData(octxt, group.getId(), MailItem.Type.CALENDAR_GROUP, encodeCustomMetadata(req));
// TODO: I was expecting to work with MailItem.Type.CALENDAR_GROUP. Understeand why it works with MailItem.Type.UNKNOWN
mbox.setCustomData(octxt, group.getId(), MailItem.Type.UNKNOWN, encodeCustomMetadata(req));
return buildResponse(zsc, group);
}

Expand Down

0 comments on commit bd65576

Please sign in to comment.