Browse code

FIX: nespravne tvorenie sprav pre multichat

Cinan Rakosnik authored on 02/05/2013 at 14:50:01
Showing 1 changed files
... ...
@@ -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