Skip to content

Commit

Permalink
Delete appointment from trash after canceling
Browse files Browse the repository at this point in the history
  • Loading branch information
whitslar committed Jun 19, 2017
1 parent be23b4f commit fd64fa7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions lib/zimbra/appointment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ def cancel(appointment, invite_id)
xml = invoke("n2:CancelAppointmentRequest") do |message|
Builder.cancel(message, appointment.id, invite_id)
end

xml = invoke("n2:ItemActionRequest") do |message|
message.add "action" do |action|
action.set_attr 'id', appointment.id
action.set_attr 'op', 'delete'
end
end
end

class Builder
Expand Down
2 changes: 1 addition & 1 deletion lib/zimbra/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Zimbra
VERSION = "0.0.10"
VERSION = "0.0.11"
end

0 comments on commit fd64fa7

Please sign in to comment.