# HG changeset patch # User Paul Boddie # Date 1442253417 -7200 # Node ID 3fd0955c731216f05e8ce127bab7f27cbd778e95 # Parent 6c1d81deed5e62327a8496ecc4daf8269a114ca5 Avoid updating PARTSTAT when recording an offer and sending a COUNTER message. diff -r 6c1d81deed5e -r 3fd0955c7312 imiptools/handlers/resource.py --- a/imiptools/handlers/resource.py Mon Sep 14 19:56:01 2015 +0200 +++ b/imiptools/handlers/resource.py Mon Sep 14 19:56:57 2015 +0200 @@ -135,13 +135,12 @@ # break # Update the participation of the resource in the object. - - attendee_attr = self.update_participation(self.obj, - scheduled and "ACCEPTED" or "DECLINED") - # Update free/busy information. if method == "REPLY": + attendee_attr = self.update_participation(self.obj, + scheduled and "ACCEPTED" or "DECLINED") + self.update_event_in_freebusy(for_organiser=False) self.remove_event_from_freebusy_offers() @@ -165,6 +164,7 @@ # Make a version of the object with just this attendee, update the # DTSTAMP in the response, and return the object for sending. + self.update_sender(attendee_attr) self.obj["ATTENDEE"] = [(self.user, attendee_attr)] self.update_dtstamp() self.add_result(method, map(get_address, self.obj.get_values("ORGANIZER")), to_part(method, [self.obj.to_node()]))