Skip to content

Commit

Permalink
Merge pull request #3 from vatsu/master
Browse files Browse the repository at this point in the history
fix deletion process
  • Loading branch information
nathmisaki committed Jun 6, 2016
2 parents 91f22d4 + b30f26a commit 494edb4
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 494edb4

Please sign in to comment.