Skip to content

Commit

Permalink
Merge pull request #791 from byenilmez/patch-1
Browse files Browse the repository at this point in the history
fix: do not reuse same instance for recipient
  • Loading branch information
vgrem authored Dec 6, 2023
2 parents 480f825 + 48f4caf commit b2139c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion office365/outlook/mail/recipient.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
class Recipient(ClientValue):
"""Represents information about a user in the sending or receiving end of an event, message or group post."""

def __init__(self, email_address=EmailAddress()):
def __init__(self, email_address=None):
"""
:param EmailAddress email_address: The recipient's email address.
"""
if email_address is None:
email_address = EmailAddress()
super(Recipient, self).__init__()
self.emailAddress = email_address

Expand Down

0 comments on commit b2139c8

Please sign in to comment.