1.1 --- a/imiptools/client.py Tue Oct 31 23:45:34 2017 +0100
1.2 +++ b/imiptools/client.py Tue Oct 31 23:46:20 2017 +0100
1.3 @@ -983,17 +983,19 @@
1.4
1.5 """
1.6 Prepare an event cancellation message involving the participants in the
1.7 - 'to_cancel' mapping.
1.8 + 'to_cancel' mapping or involving all participants if 'to_cancel' is not
1.9 + specified or empty.
1.10 """
1.11
1.12 - if not to_cancel:
1.13 - return None
1.14 + obj = self.obj.copy()
1.15
1.16 - obj = self.obj.copy()
1.17 - obj["ATTENDEE"] = to_cancel.items()
1.18 + if to_cancel:
1.19 + obj["ATTENDEE"] = to_cancel.items()
1.20 +
1.21 + recipients = self.get_recipients(obj)
1.22
1.23 parts = [self.object_to_part("CANCEL", obj)]
1.24 - return self.make_message(parts, to_cancel.keys())
1.25 + return self.make_message(parts, recipients)
1.26
1.27 def make_cancel_message_for_self(self, obj):
1.28