lib/lita/message.rb in lita-2.4.0 vs lib/lita/message.rb in lita-2.5.0
- old
+ new
@@ -72,9 +72,11 @@
# Replies by sending the given strings back to the user who sent the
# message directly, even if the message was sent in a room.
# @param strings [String, Array<String>] The strings to send back.
# @return [void]
def reply_privately(*strings)
- @robot.send_messages(Source.new(source.user), *strings)
+ private_source = source.clone
+ private_source.private_message!
+ @robot.send_messages(private_source, *strings)
end
end
end