Skip to content

Commit

Permalink
Adding save_to_history on qblox
Browse files Browse the repository at this point in the history
  • Loading branch information
nathmisaki committed Jun 14, 2016
1 parent dc7afaa commit 2efc388
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/qblox/user.rb
Expand Up @@ -80,6 +80,7 @@ def delete_dialog(chat_dialog_id, options: {})

def send_custom_pvt_message(recipient_id, options = {})
options[:send_to_chat] ||= 1
options[:save_to_history] ||= 1
options[:markable] ||= 1
options[:recipient_id] = recipient_id
Qblox::Message.new(
Expand All @@ -89,6 +90,7 @@ def send_custom_pvt_message(recipient_id, options = {})

def send_pvt_message(recipient_id, message, options = {})
options[:send_to_chat] ||= 1
options[:save_to_history] ||= 1
options[:markable] ||= 1
options[:recipient_id] = recipient_id
options[:message] = message
Expand All @@ -99,6 +101,7 @@ def send_pvt_message(recipient_id, message, options = {})

def send_message(chat_dialog_id, message, options = {})
options[:send_to_chat] ||= 1
options[:save_to_history] ||= 1
options[:markable] ||= 1
options[:chat_dialog_id] = chat_dialog_id
options[:message] = message
Expand Down

0 comments on commit 2efc388

Please sign in to comment.