Skip to content

Commit

Permalink
Merge pull request googleapis#231 from jkamdjou/master
Browse files Browse the repository at this point in the history
fix bug for removing all categories from a message
  • Loading branch information
Alejandro Casanovas authored Apr 16, 2019
2 parents e07b047 + efef22b commit ba437b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion O365/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def to_api_data(self, restrict_keys=None):
if self.sender and self.sender.address:
message[cc('from')] = self._recipient_to_cloud(self.sender)

if self.categories:
if self.categories or 'categories' in restrict_keys:
message[cc('categories')] = self.categories

if self.object_id and not self.__is_draft:
Expand Down

0 comments on commit ba437b1

Please sign in to comment.