... | ... |
@@ -1,11 +1,10 @@ |
1 | 1 |
module MessageBuilder |
2 | 2 |
def self.build_multi_messages(message, from, attendants, chat_id) |
3 | 3 |
attendants.map do |person| |
4 |
- message = Jabber::Message.new(person, message) |
|
5 |
- message.from = from |
|
6 |
- message.add_attribute('chat_id', chat_id) |
|
7 |
- message.add_attribute('is_simulating', true) |
|
8 |
- message |
|
4 |
+ new_message = Jabber::Message.new(person, message) |
|
5 |
+ new_message.from = from |
|
6 |
+ new_message.add_attribute('chat_id', chat_id) |
|
7 |
+ new_message |
|
9 | 8 |
end |
10 | 9 |
end |
11 | 10 |
|