Skip to content

Commit

Permalink
fix deletion process
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Sales committed Jun 6, 2016
1 parent 1f3b892 commit b30f26a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/qblox/api/dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def update(chat_dialog_id, data = {})
def delete(chat_dialog_id, data = {})
response = query(:delete) do |req|
req.url url(id: chat_dialog_id)
req.params = data
req.params = data
end
json_parse(response.body)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/qblox/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def create_dialog(attrs = {})
end

def delete_dialog(chat_dialog_id, options: {})
Qblox::Api::Dialog.new(token: token, id: chat_dialog_id).delete
Qblox::Api::Dialog.new(token: token).delete(chat_dialog_id)
end

def send_custom_pvt_message(recipient_id, options = {})
Expand Down

0 comments on commit b30f26a

Please sign in to comment.