Delay before sending welcome so Cheogram has time to process the new route

Stephen Paul Weber created

Change summary

lib/welcome_message.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Detailed changes

lib/welcome_message.rb 🔗

@@ -7,7 +7,10 @@ class WelcomeMessage
 	end
 
 	def welcome
-		@customer.stanza_to(message)
+		EM.promise_timer(10).then do
+			# Wait for cheogram to get the finish and set up the route
+			@customer.stanza_to(message)
+		end
 	end
 
 	def message