Skip to content

Commit

Permalink
ews: improve notes support
Browse files Browse the repository at this point in the history
  • Loading branch information
gromandreas committed Dec 21, 2023
1 parent 5dd1014 commit 704aaea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 5 additions & 2 deletions exch/ews/structures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2877,7 +2877,10 @@ void tItem::update(const sShape& shape)
fromProp(prop, defaulted(ConversationId).Id);
ConversationId->type = tItemId::ID_GENERIC;
}
fromProp(shape.get(PR_CREATION_TIME), DateTimeCreated);
if((prop = shape.get(PR_CREATION_TIME)))
fromProp(prop, DateTimeCreated);
else
fromProp(shape.get(PR_LOCAL_COMMIT_TIME), DateTimeCreated);
fromProp(shape.get(PR_DISPLAY_BCC), DisplayBcc);
fromProp(shape.get(PR_DISPLAY_CC), DisplayCc);
fromProp(shape.get(PR_DISPLAY_TO),DisplayTo);
Expand Down Expand Up @@ -2928,7 +2931,7 @@ sItem tItem::create(const sShape& shape)
const char* itemClass = shape.get<char>(PR_MESSAGE_CLASS, sShape::FL_ANY);
if(!itemClass)
return tItem(shape);
if(!strcasecmp(itemClass, "IPM.Note"))
if(!strcasecmp(itemClass, "IPM.Note") || !strcasecmp(itemClass, "IPM.StickyNote"))
return tMessage(shape);
else if(!strcasecmp(itemClass, "IPM.Appointment"))
return tCalendarItem(shape);
Expand Down
5 changes: 0 additions & 5 deletions exch/ews/structures.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,6 @@ using sFolderChangeDescription = std::variant<tAppendToFolderField, tSetFolderFi
/*
<Items>
<DistributionList/>
<MeetingMessage/>
<MeetingRequest/>
<MeetingResponse/>
<MeetingCancellation/>
<Task/>
<PostItem/>
</Items>
*/
Expand Down

0 comments on commit 704aaea

Please sign in to comment.